mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
AK+Tests: Make CaseInsensitiveStringViewTraits work with HashMap again
This commit is contained in:
parent
822e32eb11
commit
79b9dd6248
2 changed files with 9 additions and 0 deletions
|
@ -108,6 +108,14 @@ TEST_CASE(case_insensitive)
|
|||
EXPECT_EQ(casemap.size(), 1u);
|
||||
}
|
||||
|
||||
TEST_CASE(case_insensitive_stringview)
|
||||
{
|
||||
HashMap<StringView, int, CaseInsensitiveStringViewTraits> casemap;
|
||||
EXPECT_EQ(casemap.set("nickserv"sv, 3), AK::HashSetResult::InsertedNewEntry);
|
||||
EXPECT_EQ(casemap.set("NickServ"sv, 3), AK::HashSetResult::ReplacedExistingEntry);
|
||||
EXPECT_EQ(casemap.size(), 1u);
|
||||
}
|
||||
|
||||
TEST_CASE(hashmap_of_nonnullownptr_get)
|
||||
{
|
||||
struct Object {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue