Jelajahi Sumber

test: minor changes

Michele Caini 5 tahun lalu
induk
melakukan
fb4784b695

+ 1 - 11
test/entt/entity/registry.cpp

@@ -1159,7 +1159,7 @@ TEST(Registry, RangeDestroy) {
     ASSERT_FALSE(registry.valid(e2));
 }
 
-TEST(Registry, RangeEmplace) {
+TEST(Registry, Insert) {
     entt::registry registry;
 
     const auto e0 = registry.create();
@@ -1344,16 +1344,6 @@ TEST(Registry, Constness) {
     ASSERT_TRUE((std::is_same_v<decltype(std::as_const(registry).try_get<int, char>({})), std::tuple<const int *, const char *>>));
 }
 
-TEST(Registry, BatchCreateAmbiguousCall) {
-    struct ambiguous { std::uint32_t foo; std::uint64_t bar; };
-    entt::registry registry;
-    const auto entity = registry.create();
-    std::uint32_t foo = 32u;
-    std::uint64_t bar = 64u;
-    // this should work, no other tests required
-    registry.emplace<ambiguous>(entity, foo, bar);
-}
-
 TEST(Registry, MoveOnlyComponent) {
     entt::registry registry;
     // the purpose is to ensure that move only types are always accepted

+ 1 - 1
test/entt/entity/sparse_set.cpp

@@ -108,7 +108,7 @@ TEST(SparseSet, Pagination) {
     ASSERT_EQ(set.extent(), 0u);
 }
 
-TEST(SparseSet, BatchAdd) {
+TEST(SparseSet, Insert) {
     entt::sparse_set set;
     entt::entity entities[2];
 

+ 2 - 2
test/entt/entity/storage.cpp

@@ -87,7 +87,7 @@ TEST(Storage, EmptyType) {
     ASSERT_TRUE(pool.contains(entt::entity{99}));
 }
 
-TEST(Storage, BatchAdd) {
+TEST(Storage, Insert) {
     entt::storage<int> pool;
     entt::entity entities[2];
 
@@ -104,7 +104,7 @@ TEST(Storage, BatchAdd) {
     ASSERT_EQ(pool.get(entities[1]), 0);
 }
 
-TEST(Storage, BatchAddEmptyType) {
+TEST(Storage, InsertEmptyType) {
     entt::storage<empty_type> pool;
     entt::entity entities[2];