|
|
@@ -33,7 +33,6 @@ TEST(SparseSetNoType, Functionalities) {
|
|
|
ASSERT_NE(set.begin(), set.end());
|
|
|
ASSERT_FALSE(set.has(0));
|
|
|
ASSERT_TRUE(set.has(42));
|
|
|
- ASSERT_TRUE(set.unsafe_has(42));
|
|
|
ASSERT_EQ(set.get(42), 0u);
|
|
|
|
|
|
set.destroy(42);
|
|
|
@@ -430,7 +429,6 @@ TEST(SparseSetWithType, Functionalities) {
|
|
|
ASSERT_NE(set.begin(), set.end());
|
|
|
ASSERT_FALSE(set.has(0));
|
|
|
ASSERT_TRUE(set.has(42));
|
|
|
- ASSERT_TRUE(set.unsafe_has(42));
|
|
|
ASSERT_EQ(set.get(42), 3);
|
|
|
ASSERT_EQ(*set.try_get(42), 3);
|
|
|
ASSERT_EQ(set.try_get(99), nullptr);
|
|
|
@@ -478,26 +476,14 @@ TEST(SparseSetWithType, EntityFromComponent) {
|
|
|
ASSERT_EQ(set.get(set.entity(first)), first);
|
|
|
ASSERT_EQ(&set.get(set.entity(first)), &first);
|
|
|
|
|
|
- ASSERT_NE(set.unsafe_entity(first), invalid);
|
|
|
- ASSERT_EQ(set.get(set.unsafe_entity(first)), first);
|
|
|
- ASSERT_EQ(&set.get(set.unsafe_entity(first)), &first);
|
|
|
-
|
|
|
ASSERT_NE(set.entity(second), invalid);
|
|
|
ASSERT_EQ(set.get(set.entity(second)), second);
|
|
|
ASSERT_EQ(&set.get(set.entity(second)), &second);
|
|
|
|
|
|
- ASSERT_NE(set.unsafe_entity(second), invalid);
|
|
|
- ASSERT_EQ(set.get(set.unsafe_entity(second)), second);
|
|
|
- ASSERT_EQ(&set.get(set.unsafe_entity(second)), &second);
|
|
|
-
|
|
|
ASSERT_NE(set.entity(third), invalid);
|
|
|
ASSERT_EQ(set.get(set.entity(third)), third);
|
|
|
ASSERT_EQ(&set.get(set.entity(third)), &third);
|
|
|
|
|
|
- ASSERT_NE(set.unsafe_entity(third), invalid);
|
|
|
- ASSERT_EQ(set.get(set.unsafe_entity(third)), third);
|
|
|
- ASSERT_EQ(&set.get(set.unsafe_entity(third)), &third);
|
|
|
-
|
|
|
ASSERT_EQ(set.entity(0), invalid);
|
|
|
}
|
|
|
|