mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Add String::clear() method to clear the string.
This commit is contained in:
@ -67,6 +67,10 @@ public:
|
||||
CPPUNIT_ASSERT(s != L"taglib");
|
||||
CPPUNIT_ASSERT(s != L"taglib string taglib");
|
||||
|
||||
s.clear();
|
||||
CPPUNIT_ASSERT(s.isEmpty());
|
||||
CPPUNIT_ASSERT(!s.isNull());
|
||||
|
||||
String unicode("José Carlos", String::UTF8);
|
||||
CPPUNIT_ASSERT(strcmp(unicode.toCString(), "Jos\xe9 Carlos") == 0);
|
||||
|
||||
|
Reference in New Issue
Block a user