Browse Source

test: avoid magic numbers

Michele Caini 1 year ago
parent
commit
bf0e78fef9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/entt/entity/reactive_mixin.cpp

+ 1 - 1
test/entt/entity/reactive_mixin.cpp

@@ -494,7 +494,7 @@ TYPED_TEST(ReactiveMixin, View) {
     pool.template on_construct<test::empty>();
     registry.insert<test::empty>(entity.begin(), entity.end());
     registry.insert<double>(entity.begin(), entity.end());
-    registry.emplace<int>(entity[1u], 42);
+    registry.emplace<int>(entity[1u], 1);
 
     ASSERT_EQ(pool.size(), 2u);
     ASSERT_TRUE(pool.contains(entity[0u]));