mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 04:50:29 +00:00
Tests: Add test for null string and empty string to be unequal
See #12213
This commit is contained in:
parent
98d666eab3
commit
1921a166e5
Notes:
sideshowbarker
2024-07-17 20:00:22 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/1921a166e58 Pull-request: https://github.com/SerenityOS/serenity/pull/12215
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ TEST_CASE(construct_contents)
|
|||
EXPECT(test_string != "ABCDEFG");
|
||||
}
|
||||
|
||||
TEST_CASE(equal)
|
||||
{
|
||||
EXPECT_NE(String::empty(), String {});
|
||||
}
|
||||
|
||||
TEST_CASE(compare)
|
||||
{
|
||||
EXPECT("a" < String("b"));
|
||||
|
|
Loading…
Reference in a new issue