]> granicus.if.org Git - taglib/commitdiff
Add some tests for String
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 26 Apr 2013 10:43:10 +0000 (19:43 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 26 Apr 2013 10:43:10 +0000 (19:43 +0900)
tests/test_string.cpp

index 4a58c277573d2a87124741b0ce0fca8259c7bef5..f29769191f019a26a09f8725ac4253318cf53509 100644 (file)
@@ -62,6 +62,13 @@ public:
     String latin = "Jos\xe9 Carlos";
     CPPUNIT_ASSERT(strcmp(latin.toCString(true), "José Carlos") == 0);
 
+    String c;
+    c = "1";
+    CPPUNIT_ASSERT(c == L"1");
+
+    c = L'\u4E00';
+    CPPUNIT_ASSERT(c == L"\u4E00");
+
     String unicode2(unicode.to8Bit(true), String::UTF8);
     CPPUNIT_ASSERT(unicode == unicode2);