Added internal statistics to MichaelSet/Map
[libcds.git] / test / unit / map / michael_michael_hp.cpp
index 6b48b7845f7e1d53d56ad37ae4de1b789e684bf0..4c3a7ae43fde6dbfedadc52e5ef945303397d5d5 100644 (file)
@@ -171,8 +171,9 @@ namespace {
         };
         typedef cc::MichaelHashMap< gc_type, list_type, map_traits > map_type;
 
-        map_type s( kSize, 8 );
-        test( s );
+        map_type m( kSize, 8 );
+        test( m );
+        EXPECT_GE( m.statistics().m_nInsertSuccess, 0 );
     }
 
     TEST_F( MichaelMap_HP, wrapped_stat )
@@ -191,8 +192,9 @@ namespace {
         };
         typedef cc::MichaelHashMap< gc_type, list_type, map_traits > map_type;
 
-        map_type s( kSize, 8 );
-        test( s );
+        map_type m( kSize, 8 );
+        test( m );
+        EXPECT_GE( m.statistics().m_nInsertSuccess, 0 );
     }
 
 } // namespace