test: guarantee that entt::entity{} != entt::null (close #375)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user