Browse Source

test: explicit checks + braces

Michele Caini 1 year ago
parent
commit
2bb7b07191
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/entt/entity/group.cpp

+ 2 - 2
test/entt/entity/group.cpp

@@ -1449,8 +1449,8 @@ TEST(OwningGroup, StableLateInitialization) {
 
     for(std::size_t i{}; i < number_of_entities; ++i) {
         auto entity = registry.create();
-        if(!(i % 2u)) registry.emplace<int>(entity);
-        if(!(i % 3u)) registry.emplace<char>(entity);
+        if((i % 2u) == 0u) { registry.emplace<int>(entity); }
+        if((i % 3u) == 0u) { registry.emplace<char>(entity); }
     }
 
     // thanks to @pgruenbacher for pointing out this corner case