Added internal statistics to MichaelSet/Map
[libcds.git] / test / unit / map / michael_iterable_hp.cpp
index 1f0f03394d570d18195c718db8bc0ebf15a2c8d9..71e37a0f904ae68d124891d3ed476c6f742d8fdc 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( MichaelIterableMap_HP, wrapped_stat )
@@ -190,8 +191,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