diff --git a/AK/Tests/TestHashMap.cpp b/AK/Tests/TestHashMap.cpp index e6ee902d84..fb8f483a0c 100644 --- a/AK/Tests/TestHashMap.cpp +++ b/AK/Tests/TestHashMap.cpp @@ -26,8 +26,8 @@ #include -#include #include +#include TEST_CASE(construct) { @@ -88,24 +88,13 @@ TEST_CASE(case_insensitive) EXPECT_EQ(casemap.size(), 1u); } -TEST_CASE(assert_on_iteration_during_clear) -{ - struct Object { - ~Object() - { - m_map->begin(); - } - HashMap* m_map; - }; - HashMap map; - map.set(0, { &map }); - map.clear(); -} - TEST_CASE(hashmap_of_nonnullownptr_get) { struct Object { - Object(const String& s) : string(s) {} + Object(const String& s) + : string(s) + { + } String string; };