mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
AK: Rename CaseInsensitiveStringViewTraits to reflect intent
Now it is called `CaseInsensitiveASCIIStringViewTraits`, so we can be more specific about what data structure does it operate onto. ;)
This commit is contained in:
parent
8ba6cd6ab9
commit
5141c86587
7 changed files with 10 additions and 11 deletions
|
@ -111,7 +111,7 @@ TEST_CASE(case_insensitive)
|
|||
|
||||
TEST_CASE(case_insensitive_stringview)
|
||||
{
|
||||
HashMap<StringView, int, CaseInsensitiveStringViewTraits> casemap;
|
||||
HashMap<StringView, int, CaseInsensitiveASCIIStringViewTraits> 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue