|
|
@@ -244,7 +244,7 @@ TEST(SighMixin, NonDefaultConstructibleType) {
|
|
|
pool.emplace(entities[1u], 3);
|
|
|
|
|
|
ASSERT_EQ(pool.size(), 1u);
|
|
|
- ASSERT_EQ(on_construct.value, 2);
|
|
|
+ ASSERT_EQ(on_construct.value, 1);
|
|
|
ASSERT_EQ(on_destroy.value, 0);
|
|
|
ASSERT_FALSE(pool.empty());
|
|
|
|
|
|
@@ -254,7 +254,7 @@ TEST(SighMixin, NonDefaultConstructibleType) {
|
|
|
base.erase(entities[1u]);
|
|
|
|
|
|
ASSERT_EQ(pool.size(), 0u);
|
|
|
- ASSERT_EQ(on_construct.value, 2);
|
|
|
+ ASSERT_EQ(on_construct.value, 1);
|
|
|
ASSERT_EQ(on_destroy.value, 1);
|
|
|
ASSERT_TRUE(pool.empty());
|
|
|
|
|
|
@@ -267,7 +267,7 @@ TEST(SighMixin, NonDefaultConstructibleType) {
|
|
|
pool.insert(std::begin(entities), std::end(entities), 3);
|
|
|
|
|
|
ASSERT_EQ(pool.size(), 2u);
|
|
|
- ASSERT_EQ(on_construct.value, 6);
|
|
|
+ ASSERT_EQ(on_construct.value, 3);
|
|
|
ASSERT_EQ(on_destroy.value, 1);
|
|
|
ASSERT_FALSE(pool.empty());
|
|
|
|
|
|
@@ -277,7 +277,7 @@ TEST(SighMixin, NonDefaultConstructibleType) {
|
|
|
pool.erase(std::begin(entities), std::end(entities));
|
|
|
|
|
|
ASSERT_EQ(pool.size(), 0u);
|
|
|
- ASSERT_EQ(on_construct.value, 6);
|
|
|
+ ASSERT_EQ(on_construct.value, 3);
|
|
|
ASSERT_EQ(on_destroy.value, 3);
|
|
|
ASSERT_TRUE(pool.empty());
|
|
|
}
|