Explorar o código

test: a few more

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
16548fc3a1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      test/entt/entity/registry.cpp

+ 2 - 0
test/entt/entity/registry.cpp

@@ -916,6 +916,8 @@ TEST(Registry, ExcludeOnlyView) {
 
     // returns all matching identifiers, both in-use and available ones
     ASSERT_EQ(std::distance(view.begin(), view.end()), 2);
+    ASSERT_EQ(entt::to_entity(*view.begin()), entt::to_entity(entities[3u]));
+    ASSERT_EQ(*(++view.begin()), entities[1u]);
 
     // skips available identifiers automatically, only returns in-use elements
     view.each([&entities](auto entity) {