From 1921a166e585c03db91a8efe05d0cad805c1bb5c Mon Sep 17 00:00:00 2001 From: networkException Date: Sun, 30 Jan 2022 11:30:18 +0100 Subject: [PATCH] Tests: Add test for null string and empty string to be unequal See #12213 --- Tests/AK/TestString.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/AK/TestString.cpp b/Tests/AK/TestString.cpp index 2c18f91cdb..2c1420c7a9 100644 --- a/Tests/AK/TestString.cpp +++ b/Tests/AK/TestString.cpp @@ -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"));