Changed algorithm of IterableList detecting
[libcds.git] / test / unit / intrusive-set / intrusive_michael_iterable_hp.cpp
index 2554cefff81cbd15f77e39378ba13fe261119db2..56bcdb08e71af42a3cb6e48bcd265e3ceebfc8b9 100644 (file)
@@ -170,4 +170,25 @@ namespace {
         EXPECT_GE( s.statistics().m_nInsertSuccess, 0u );
     }
 
+    TEST_F( IntrusiveMichaelIterableSet_HP, derived_list )
+    {
+        class bucket_type: public ci::IterableList< gc_type
+            , item_type
+            , ci::iterable_list::make_traits<
+                ci::opt::compare< cmp<item_type> >
+                ,ci::opt::disposer< mock_disposer >
+            >::type
+        >
+        {};
+
+        typedef ci::MichaelHashSet< gc_type, bucket_type,
+            ci::michael_set::make_traits<
+            ci::opt::hash< hash_int >
+            >::type
+        > set_type;
+
+        set_type s( kSize, 2 );
+        test( s );
+    }
+
 } // namespace