Refactored Map_InsDelFind MT-test
[libcds.git] / tests / unit / map2 / map_insdelfind_cuckoo.cpp
index de5d5a1e91177f0d1e353b5cfcdbecee8abe1eb8..b85edaece84ddadc6f93fea32f9c0712755e7422 100644 (file)
@@ -3,10 +3,10 @@
 #include "map2/map_insdelfind.h"
 #include "map2/map_type_cuckoo.h"
 
-namespace map2 {
-    CDSUNIT_DEFINE_CuckooMap(cds::intrusive::cuckoo::implementation_tag, Map_InsDelFind)
+#undef TEST_CASE
+#define TEST_CASE(TAG, X)  void Map_InsDelFind::X() { run_test<typename map_type< TAG, key_type, value_type>::X>(); }
+#include "map2/map_defs.h"
 
-    CPPUNIT_TEST_SUITE_PART( Map_InsDelFind, run_CuckooMap )
-        CDSUNIT_TEST_CuckooMap
-    CPPUNIT_TEST_SUITE_END_PART()
+namespace map2 {
+    CDSUNIT_DECLARE_CuckooMap
 } // namespace map2