Browse Source

test: reintroduce meaningful checks behind a NOLINT directive

Michele Caini 2 years ago
parent
commit
ac4c38a10a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/entt/entity/runtime_view.cpp

+ 3 - 0
test/entt/entity/runtime_view.cpp

@@ -90,6 +90,7 @@ TYPED_TEST(RuntimeView, Constructors) {
     const runtime_view_type other{std::move(temp), view.get_allocator()};
 
     ASSERT_TRUE(view.contains(entity));
+    ASSERT_FALSE(temp.contains(entity)); // NOLINT
     ASSERT_TRUE(other.contains(entity));
 }
 
@@ -139,6 +140,7 @@ TYPED_TEST(RuntimeView, Move) {
 
     runtime_view_type other{std::move(view)};
 
+    ASSERT_FALSE(view.contains(entity)); // NOLINT
     ASSERT_TRUE(other.contains(entity));
 
     view = other;
@@ -149,6 +151,7 @@ TYPED_TEST(RuntimeView, Move) {
 
     other = std::move(view);
 
+    ASSERT_FALSE(view.contains(entity)); // NOLINT
     ASSERT_TRUE(other.contains(entity));
 }