Added internal statistics to MichaelSet/Map
[libcds.git] / test / unit / map / michael_michael_dhp.cpp
index a1cad613d63dbead013db0be5b37a131f359c295..cfd4a2b673bc355dcaaf5bcfd7ec100bb4552644 100644 (file)
@@ -170,8 +170,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_DHP, wrapped_stat )
@@ -189,8 +190,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