|
|
@@ -691,6 +691,8 @@ TEST(NonOwningGroup, Storage) {
|
|
|
static_assert(std::is_same_v<decltype(group.storage<float>()), const entt::storage_type_t<float> *>);
|
|
|
static_assert(std::is_same_v<decltype(group.storage<const float>()), const entt::storage_type_t<float> *>);
|
|
|
|
|
|
+ ASSERT_TRUE(group);
|
|
|
+
|
|
|
ASSERT_NE(group.storage<int>(), nullptr);
|
|
|
ASSERT_NE(group.storage<1u>(), nullptr);
|
|
|
ASSERT_NE(group.storage<double>(), nullptr);
|
|
|
@@ -736,6 +738,8 @@ TEST(NonOwningGroup, Storage) {
|
|
|
|
|
|
group = {};
|
|
|
|
|
|
+ ASSERT_FALSE(group);
|
|
|
+
|
|
|
ASSERT_EQ(group.storage<0u>(), nullptr);
|
|
|
ASSERT_EQ(group.storage<const char>(), nullptr);
|
|
|
ASSERT_EQ(group.storage<2u>(), nullptr);
|
|
|
@@ -1575,6 +1579,8 @@ TEST(OwningGroup, Storage) {
|
|
|
static_assert(std::is_same_v<decltype(group.storage<float>()), const entt::storage_type_t<float> *>);
|
|
|
static_assert(std::is_same_v<decltype(group.storage<const float>()), const entt::storage_type_t<float> *>);
|
|
|
|
|
|
+ ASSERT_TRUE(group);
|
|
|
+
|
|
|
ASSERT_NE(group.storage<int>(), nullptr);
|
|
|
ASSERT_NE(group.storage<1u>(), nullptr);
|
|
|
ASSERT_NE(group.storage<double>(), nullptr);
|
|
|
@@ -1620,6 +1626,8 @@ TEST(OwningGroup, Storage) {
|
|
|
|
|
|
group = {};
|
|
|
|
|
|
+ ASSERT_FALSE(group);
|
|
|
+
|
|
|
ASSERT_EQ(group.storage<0u>(), nullptr);
|
|
|
ASSERT_EQ(group.storage<const char>(), nullptr);
|
|
|
ASSERT_EQ(group.storage<2u>(), nullptr);
|