mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Add some tests for String
This commit is contained in:
parent
58765ac40a
commit
5e13e0c838
@ -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…
x
Reference in New Issue
Block a user