1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +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

@ -97,6 +97,8 @@ TEST_CASE(ends_with)
EXPECT(!test_string.ends_with('E'));
EXPECT(test_string.ends_with("ABCDEF"));
EXPECT(!test_string.ends_with("ABC"));
EXPECT(test_string.ends_with("def", CaseSensitivity::CaseInsensitive));
EXPECT(!test_string.ends_with("def", CaseSensitivity::CaseSensitive));
}
TEST_CASE(copy_string)