test: try to make all compilers happy again

This commit is contained in:
Michele Caini
2024-03-01 19:05:21 +01:00
parent 97d46ce64d
commit 062837dd31

View File

@@ -63,10 +63,10 @@ TYPED_TEST(Entity, Traits) {
ASSERT_EQ(traits_type::construct(entt::to_entity(entity), entt::to_version(entity)), entity);
ASSERT_EQ(traits_type::construct(entt::to_entity(other), entt::to_version(other)), other);
if constexpr(traits_type::version_mask) {
ASSERT_NE(traits_type::construct(entt::to_entity(entity), entt::to_version(other)), entity);
} else {
if constexpr(traits_type::version_mask == 0u) {
ASSERT_EQ(traits_type::construct(entt::to_entity(entity), entt::to_version(other)), entity);
} else {
ASSERT_NE(traits_type::construct(entt::to_entity(entity), entt::to_version(other)), entity);
}
ASSERT_EQ(traits_type::construct(entt::to_entity(other), entt::to_version(entity)), traits_type::combine(entt::to_integral(other), entt::to_integral(entity)));