Michele Caini 8 vuotta sitten
vanhempi
commit
29e6c29236
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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_TRUE(registry.has<char>(e2));
     ASSERT_FALSE(registry.has<double>(e2));
     ASSERT_FALSE(registry.has<double>(e2));
 
 
+    ASSERT_FALSE(registry.empty<int>());
+    ASSERT_FALSE(registry.empty<char>());
     ASSERT_TRUE(registry.empty<double>());
     ASSERT_TRUE(registry.empty<double>());
+
+    registry.reset();
 }
 }
 
 
 TEST(DefaultRegistry, ViewSingleComponent) {
 TEST(DefaultRegistry, ViewSingleComponent) {