Skip to content

Commit

Permalink
wip: some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 2, 2019
1 parent 3f2db21 commit 087f65b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/entt/entity/registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,26 @@ TEST(Registry, CleanPartialOwningGroupViewAfterReset) {
ASSERT_EQ(group.size(), entt::registry::size_type{0});
}

TEST(Registry, NestedGroups) {
entt::registry registry;
const auto g1 = registry.group<int>(entt::get<char>, entt::exclude<double>);

ASSERT_TRUE(g1.sortable());

const auto g2 = registry.group<int>(entt::get<char>);

ASSERT_TRUE(g1.sortable());
ASSERT_FALSE(g2.sortable());

const auto g3= registry.group<int, float>(entt::get<char>, entt::exclude<double>);

ASSERT_FALSE(g1.sortable());
ASSERT_FALSE(g2.sortable());
ASSERT_TRUE(g3.sortable());

// TODO
}

TEST(Registry, SortSingle) {
entt::registry registry;

Expand Down

0 comments on commit 087f65b

Please sign in to comment.