test: explicit checks + braces

This commit is contained in:
Michele Caini
2024-10-07 10:45:54 +02:00
parent b331e88b8a
commit 2bb7b07191

View File

@@ -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