Ver Fonte

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

See #12213
networkException há 3 anos atrás
pai
commit
1921a166e5
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      Tests/AK/TestString.cpp

+ 5 - 0
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"));