Browse Source

test: fixed tests for meta containers

skypjack 5 years ago
parent
commit
f3d0e3f4dd
3 changed files with 4 additions and 3 deletions
  1. 2 0
      .gitignore
  2. 0 1
      TODO
  3. 2 2
      test/entt/meta/meta_container.cpp

+ 2 - 0
.gitignore

@@ -5,6 +5,8 @@ conan/test_package/build
 *.user
 .idea
 .vscode
+.vs
+CMakeSettings.json
 
 # Bazel
 /bazel-*

+ 0 - 1
TODO

@@ -25,7 +25,6 @@ Next:
  - update documentation to describe alternatives
 
 * WIP:
- - static constexpr -> inline constexpr
  - remove internal::find_if
  - add const meta container support to meta any
  - review _t

+ 2 - 2
test/entt/meta/meta_container.cpp

@@ -106,8 +106,8 @@ TEST(MetaSequenceContainer, StdArray) {
     auto ret = view.insert(it, 0);
 
     ASSERT_FALSE(ret.second);
-    ASSERT_FALSE(view.insert(ret.first, 'c').second);
-    ASSERT_FALSE(view.insert(++ret.first, 1).second);
+    ASSERT_FALSE(view.insert(it, 'c').second);
+    ASSERT_FALSE(view.insert(++it, 1).second);
 
     ASSERT_EQ(view.size(), 3u);
     ASSERT_EQ((*view.begin()).cast<int>(), 2);