mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-02 16:25:34 +03: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
@ -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 New Issue
Block a user