mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:45:07 +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
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…
Add table
Add a link
Reference in a new issue