Explorar o código

test: make tests for entity traits work when id_type is std::uint64_t

Michele Caini %!s(int64=4) %!d(string=hai) anos
pai
achega
6d1e4fb3da
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/entt/entity/entity.cpp

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

@@ -30,7 +30,7 @@ TEST(Entity, Traits) {
 
     ASSERT_EQ(traits_type::construct(), static_cast<entt::entity>(entt::null));
     ASSERT_EQ(traits_type::construct(), static_cast<entt::entity>(entt::tombstone));
-    ASSERT_EQ(traits_type::construct(), entt::entity{0xFFFFFFFF});
+    ASSERT_EQ(traits_type::construct(), entt::entity{~entt::id_type{}});
 }
 
 TEST(Entity, Null) {