1
0
Эх сурвалжийг харах

test: guarantee that entt::entity{} != entt::null (close #375)

Michele Caini 6 жил өмнө
parent
commit
8d67bb726c

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

@@ -12,6 +12,7 @@ TEST(Entity, Null) {
 
     registry.assign<int>(entity, 42);
 
+    ASSERT_FALSE(entt::entity{} == entt::null);
     ASSERT_TRUE(entt::entity{traits_type::entity_mask} == entt::null);
     ASSERT_TRUE(entt::entity{~typename traits_type::entity_type{}} == entt::null);