1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

AK: Expand string tests to include ends_with case insensitivity

This commit is contained in:
Brian Gianforcaro 2020-05-26 03:31:56 -07:00 committed by Andreas Kling
parent 129462cca7
commit e5045b62b8
3 changed files with 15 additions and 0 deletions

View file

@ -80,6 +80,8 @@ TEST_CASE(ends_with)
EXPECT(test_string_view.ends_with("ABCDEF"));
EXPECT(!test_string_view.ends_with("ABCDE"));
EXPECT(!test_string_view.ends_with("ABCDEFG"));
EXPECT(test_string_view.ends_with("def", CaseSensitivity::CaseInsensitive));
EXPECT(!test_string_view.ends_with("def", CaseSensitivity::CaseSensitive));
}
TEST_CASE(lines)