diff --git a/test/entt/container/table.cpp b/test/entt/container/table.cpp index 1d6810335..e821c942e 100644 --- a/test/entt/container/table.cpp +++ b/test/entt/container/table.cpp @@ -508,6 +508,7 @@ TEST(Table, CustomAllocator) { ASSERT_NE(table.capacity(), 0u); ASSERT_EQ(table.size(), 2u); + other = {}; table.swap(other); table = std::move(other); test::is_initialized(other); diff --git a/test/entt/entity/reactive_mixin.cpp b/test/entt/entity/reactive_mixin.cpp index d9f215e6c..e26907051 100644 --- a/test/entt/entity/reactive_mixin.cpp +++ b/test/entt/entity/reactive_mixin.cpp @@ -605,6 +605,7 @@ TYPED_TEST(ReactiveMixin, CustomAllocator) { ASSERT_NE(pool.capacity(), 0u); ASSERT_EQ(pool.size(), 2u); + other = {}; pool.swap(other); pool = std::move(other); test::is_initialized(other); diff --git a/test/entt/entity/sigh_mixin.cpp b/test/entt/entity/sigh_mixin.cpp index f95058615..53765dd72 100644 --- a/test/entt/entity/sigh_mixin.cpp +++ b/test/entt/entity/sigh_mixin.cpp @@ -566,6 +566,7 @@ TYPED_TEST(SighMixin, CustomAllocator) { ASSERT_NE(pool.capacity(), 0u); ASSERT_EQ(pool.size(), 2u); + other = {}; pool.swap(other); pool = std::move(other); test::is_initialized(other); diff --git a/test/entt/entity/sparse_set.cpp b/test/entt/entity/sparse_set.cpp index 280fb3864..595376315 100644 --- a/test/entt/entity/sparse_set.cpp +++ b/test/entt/entity/sparse_set.cpp @@ -2026,6 +2026,7 @@ TYPED_TEST(SparseSet, CustomAllocator) { ASSERT_EQ(set.capacity(), 2u); ASSERT_EQ(set.size(), 2u); + other = {}; set.swap(other); set = std::move(other); test::is_initialized(other); diff --git a/test/entt/entity/storage.cpp b/test/entt/entity/storage.cpp index 236038aea..0aca40177 100644 --- a/test/entt/entity/storage.cpp +++ b/test/entt/entity/storage.cpp @@ -1761,6 +1761,7 @@ TYPED_TEST(Storage, CustomAllocator) { ASSERT_NE(pool.capacity(), 0u); ASSERT_EQ(pool.size(), 2u); + other = {}; pool.swap(other); pool = std::move(other); test::is_initialized(other);