|
@@ -20,6 +20,7 @@ static void testEquality8() {
|
|
|
CORE_TEST_TRUE(s == build("test"));
|
|
|
CORE_TEST_TRUE("test" == s);
|
|
|
CORE_TEST_TRUE(build("test") == s);
|
|
|
+ CORE_TEST_FALSE(build("tes2") == s);
|
|
|
CORE_TEST_TRUE(s == s);
|
|
|
}
|
|
|
|
|
@@ -445,6 +446,19 @@ static void testKeepHash8() {
|
|
|
CORE_TEST_STRING("a # test ## ##123456789", s);
|
|
|
}
|
|
|
|
|
|
+static void testFormatWithoutArguments8() {
|
|
|
+ String8 s;
|
|
|
+ CORE_TEST_ERROR(s.append("wusi"));
|
|
|
+ CORE_TEST_ERROR(s.format());
|
|
|
+ CORE_TEST_STRING("wusi", s);
|
|
|
+}
|
|
|
+
|
|
|
+static void testUnicodeString8() {
|
|
|
+ String8 s;
|
|
|
+ CORE_TEST_ERROR(s.append(U"_üö§äab"));
|
|
|
+ CORE_TEST_STRING("_üö§äab", s);
|
|
|
+}
|
|
|
+
|
|
|
static String32 build(const c32* cs) {
|
|
|
String32 s;
|
|
|
CORE_TEST_ERROR(s.append(cs));
|
|
@@ -457,6 +471,7 @@ static void testEquality32() {
|
|
|
CORE_TEST_TRUE(s == build(U"test"));
|
|
|
CORE_TEST_TRUE(U"test" == s);
|
|
|
CORE_TEST_TRUE(build(U"test") == s);
|
|
|
+ CORE_TEST_FALSE(build(U"tes2") == s);
|
|
|
CORE_TEST_TRUE(s == s);
|
|
|
}
|
|
|
|
|
@@ -969,6 +984,8 @@ void Core::testArrayString() {
|
|
|
testAppendError8();
|
|
|
testPrint8();
|
|
|
testKeepHash8();
|
|
|
+ testFormatWithoutArguments8();
|
|
|
+ testUnicodeString8();
|
|
|
|
|
|
testEquality32();
|
|
|
testUnicodeEquality32();
|