better test
This commit is contained in:
@@ -208,6 +208,7 @@ TEST(DefaultRegistry, Orphans) {
|
||||
registry.create();
|
||||
registry.create<int>();
|
||||
registry.create();
|
||||
registry.attach<double>(registry.create());
|
||||
|
||||
registry.orphans([&](auto) { ++tot; });
|
||||
ASSERT_EQ(tot, 2u);
|
||||
|
||||
Reference in New Issue
Block a user