소스 검색

test: reintroduce meaningful checks behind a NOLINT directive

Michele Caini 2 년 전
부모
커밋
ac4c38a10a
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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()};
     const runtime_view_type other{std::move(temp), view.get_allocator()};
 
 
     ASSERT_TRUE(view.contains(entity));
     ASSERT_TRUE(view.contains(entity));
+    ASSERT_FALSE(temp.contains(entity)); // NOLINT
     ASSERT_TRUE(other.contains(entity));
     ASSERT_TRUE(other.contains(entity));
 }
 }
 
 
@@ -139,6 +140,7 @@ TYPED_TEST(RuntimeView, Move) {
 
 
     runtime_view_type other{std::move(view)};
     runtime_view_type other{std::move(view)};
 
 
+    ASSERT_FALSE(view.contains(entity)); // NOLINT
     ASSERT_TRUE(other.contains(entity));
     ASSERT_TRUE(other.contains(entity));
 
 
     view = other;
     view = other;
@@ -149,6 +151,7 @@ TYPED_TEST(RuntimeView, Move) {
 
 
     other = std::move(view);
     other = std::move(view);
 
 
+    ASSERT_FALSE(view.contains(entity)); // NOLINT
     ASSERT_TRUE(other.contains(entity));
     ASSERT_TRUE(other.contains(entity));
 }
 }