فهرست منبع

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

Michele Caini 4 سال پیش
والد
کامیت
6d1e4fb3da
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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::null));
     ASSERT_EQ(traits_type::construct(), static_cast<entt::entity>(entt::tombstone));
     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) {
 TEST(Entity, Null) {