From 5bf84a5b0e243d0fa53aeb2069f8f691d9371cbc Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Thu, 23 Jun 2022 17:00:41 +0200 Subject: AK: Zero previous pointer *after* fixing the insertion list in HashTable --- Tests/AK/TestHashTable.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Tests/AK/TestHashTable.cpp') diff --git a/Tests/AK/TestHashTable.cpp b/Tests/AK/TestHashTable.cpp index fc1e512045..410681a352 100644 --- a/Tests/AK/TestHashTable.cpp +++ b/Tests/AK/TestHashTable.cpp @@ -300,3 +300,12 @@ BENCHMARK_CASE(benchmark_thrashing) table.remove(i); } } + +TEST_CASE(reinsertion) +{ + OrderedHashTable map; + map.set("ytidb::LAST_RESULT_ENTRY_KEY"); + map.set("__sak"); + map.remove("__sak"); + map.set("__sak"); +} -- cgit v1.2.3