Explorar o código

test: reintroduce meaningful checks behind a NOLINT directive

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
8177f8934c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      test/entt/graph/flow.cpp

+ 3 - 2
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);
 }