Tests: Add test for null string and empty string to be unequal

See #12213
This commit is contained in:
networkException 2022-01-30 11:30:18 +01:00 committed by Andreas Kling
parent 98d666eab3
commit 1921a166e5
Notes: sideshowbarker 2024-07-17 20:00:22 +09:00

View file

@ -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"));