From 8177f8934cd30becd53ed0fedac7a461860023a4 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 9 Jan 2024 10:32:37 +0100 Subject: [PATCH] test: reintroduce meaningful checks behind a NOLINT directive --- test/entt/graph/flow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/entt/graph/flow.cpp b/test/entt/graph/flow.cpp index b4e6fb10a..82eb6f97d 100644 --- a/test/entt/graph/flow.cpp +++ b/test/entt/graph/flow.cpp @@ -25,6 +25,7 @@ TEST(Flow, Constructors) { const entt::flow temp{flow, flow.get_allocator()}; const entt::flow other{std::move(flow), flow.get_allocator()}; + ASSERT_EQ(flow.size(), 0u); // NOLINT ASSERT_EQ(other.size(), 3u); ASSERT_EQ(other[0u], 0u); @@ -69,10 +70,9 @@ TEST(Flow, Move) { flow.bind(3); flow.bind(99); - ASSERT_EQ(flow.size(), 3u); - entt::flow other{std::move(flow)}; + ASSERT_EQ(flow.size(), 0u); // NOLINT ASSERT_EQ(other.size(), 3u); ASSERT_EQ(other[0u], 0u); @@ -86,6 +86,7 @@ TEST(Flow, Move) { other = std::move(flow); ASSERT_EQ(other.size(), 1u); + ASSERT_EQ(flow.size(), 0u); // NOLINT ASSERT_EQ(other[0u], 1u); }