Browse Source

tests: minor changes

Michele Caini 4 years ago
parent
commit
c5e99342a3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      test/entt/container/dense_map.cpp
  2. 1 1
      test/entt/container/dense_set.cpp

+ 1 - 1
test/entt/container/dense_map.cpp

@@ -104,7 +104,7 @@ TEST(DenseMap, Constructors) {
     entt::dense_map<int, int> temp{map, map.get_allocator()};
     entt::dense_map<int, int> other{std::move(temp), map.get_allocator()};
 
-    ASSERT_EQ(other.size(), 1u);
+    ASSERT_EQ(map.size(), 1u);
     ASSERT_EQ(other.size(), 1u);
     ASSERT_EQ(map.bucket_count(), 4u * minimum_bucket_count);
     ASSERT_EQ(other.bucket_count(), 4u * minimum_bucket_count);

+ 1 - 1
test/entt/container/dense_set.cpp

@@ -103,7 +103,7 @@ TEST(DenseSet, Constructors) {
     entt::dense_set<int> temp{set, set.get_allocator()};
     entt::dense_set<int> other{std::move(temp), set.get_allocator()};
 
-    ASSERT_EQ(other.size(), 1u);
+    ASSERT_EQ(set.size(), 1u);
     ASSERT_EQ(other.size(), 1u);
     ASSERT_EQ(set.bucket_count(), 4u * minimum_bucket_count);
     ASSERT_EQ(other.bucket_count(), 4u * minimum_bucket_count);