Răsfoiți Sursa

test: drop a bunch of NOLINT

Michele Caini 2 ani în urmă
părinte
comite
15d63ec358

+ 2 - 2
test/example/custom_identifier.cpp

@@ -41,10 +41,10 @@ TEST(Example, CustomIdentifier) {
     ASSERT_FALSE((registry.all_of<int, char>(entity)));
     ASSERT_EQ(registry.try_get<int>(entity), nullptr);
 
-    registry.emplace<int>(entity, 42); // NOLINT
+    registry.emplace<int>(entity, 2);
 
     ASSERT_TRUE((registry.any_of<int, char>(entity)));
-    ASSERT_EQ(registry.get<int>(entity), 42); // NOLINT
+    ASSERT_EQ(registry.get<int>(entity), 2);
 
     registry.destroy(entity);
 

+ 4 - 4
test/example/entity_copy.cpp

@@ -54,7 +54,7 @@ TEST(EntityCopy, SameRegistry) {
     const auto dst = registry.create();
 
     custom.emplace(src, 1.);
-    registry.emplace<int>(src, 42); // NOLINT
+    registry.emplace<int>(src, 2);
     registry.emplace<char>(src, 'c');
 
     ASSERT_EQ(registry.storage<entt::entity>().size(), 2u);
@@ -76,7 +76,7 @@ TEST(EntityCopy, SameRegistry) {
     ASSERT_TRUE((registry.all_of<int, char>(src)));
     ASSERT_TRUE((registry.all_of<int, char>(dst)));
 
-    ASSERT_EQ(registry.get<int>(dst), 42);
+    ASSERT_EQ(registry.get<int>(dst), 2);
     ASSERT_EQ(registry.get<char>(dst), 'c');
 }
 
@@ -90,7 +90,7 @@ TYPED_TEST(EntityCopy, CrossRegistry) {
     const auto entity = src.create();
     const auto copy = dst.create();
 
-    src.emplace<int>(entity, 42); // NOLINT
+    src.emplace<int>(entity, 2);
     src.emplace<char>(entity, 'c');
 
     ASSERT_EQ(src.storage<entt::entity>().size(), 1u);
@@ -118,6 +118,6 @@ TYPED_TEST(EntityCopy, CrossRegistry) {
 
     ASSERT_TRUE((src.all_of<int, char>(entity)));
     ASSERT_TRUE((dst.template all_of<int, char>(copy)));
-    ASSERT_EQ(dst.template get<int>(copy), 42);
+    ASSERT_EQ(dst.template get<int>(copy), 2);
     ASSERT_EQ(dst.template get<char>(copy), 'c');
 }

+ 3 - 3
test/example/signal_less.cpp

@@ -39,8 +39,8 @@ TEST(Example, SignalLess) {
     // literally a test for storage_adapter_mixin
     registry.emplace<int>(entity[0], 0);
     registry.erase<int>(entity[0]);
-    registry.insert<int>(std::begin(entity), std::end(entity), 3);   // NOLINT
-    registry.patch<int>(entity[0], [](auto &value) { value = 42; }); // NOLINT
+    registry.insert<int>(std::begin(entity), std::end(entity), 3); // NOLINT
+    registry.patch<int>(entity[0], [](auto &value) { value = 2; });
 
-    ASSERT_EQ(registry.get<int>(entity[0]), 42); // NOLINT
+    ASSERT_EQ(registry.get<int>(entity[0]), 2);
 }