mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Merge pull request #171 from TsudaKageyu/string-test
Add some tests for String
This commit is contained in:
commit
a80222efa5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user