mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:15:07 +00:00
AK: Add case insensitive version of starts_with
This commit is contained in:
parent
ccc929dcf9
commit
a5ecb9bd6b
11 changed files with 53 additions and 20 deletions
|
@ -68,6 +68,8 @@ TEST_CASE(starts_with)
|
|||
EXPECT(test_string_view.starts_with("AB"));
|
||||
EXPECT(test_string_view.starts_with("ABCDEF"));
|
||||
EXPECT(!test_string_view.starts_with("DEF"));
|
||||
EXPECT(test_string_view.starts_with("abc", CaseSensitivity::CaseInsensitive));
|
||||
EXPECT(!test_string_view.starts_with("abc", CaseSensitivity::CaseSensitive));
|
||||
}
|
||||
|
||||
TEST_CASE(ends_with)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue