Added erase_at( iterator ) function to MichaelHashSet/Map and SplitListSet/Map based...
[libcds.git] / test / unit / list / test_kv_iterable_list.h
index 9fcefda7fd5bd0cfb7a8b6b8b9f6289f253e9840..8c6cdc8d8052f3ab89ed4b6e3b38fa7e6bf24656 100644 (file)
@@ -438,7 +438,12 @@ namespace cds_test {
             }
             EXPECT_EQ( static_cast<size_t>(key), nSize );
 
-            l.clear();
+            // erase_at()
+            for ( auto it = l.begin(); it != l.end(); ++it ) {
+                EXPECT_TRUE( l.erase_at( it ));
+                EXPECT_FALSE( l.erase_at( it ));
+            }
+
             ASSERT_TRUE( l.empty());
             EXPECT_CONTAINER_SIZE( l, 0 );
         }