Ver Fonte

fixed test

Michele Caini há 9 anos atrás
pai
commit
29e6c29236
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      test/registry.cpp

+ 4 - 0
test/registry.cpp

@@ -142,7 +142,11 @@ TEST(DefaultRegistry, Copy) {
     ASSERT_TRUE(registry.has<char>(e2));
     ASSERT_FALSE(registry.has<double>(e2));
 
+    ASSERT_FALSE(registry.empty<int>());
+    ASSERT_FALSE(registry.empty<char>());
     ASSERT_TRUE(registry.empty<double>());
+
+    registry.reset();
 }
 
 TEST(DefaultRegistry, ViewSingleComponent) {