mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
test_string: Make 'stripWhiteSpace' test more complex
No string without leading/trailing spaces was used in the test. Signed-off-by: Martin Flaska <martin.flaska@legrand.us>
This commit is contained in:
parent
ad075a56f9
commit
6cfb11bb12
@ -112,6 +112,9 @@ public:
|
||||
CPPUNIT_ASSERT(String(" foo ").stripWhiteSpace() == String("foo"));
|
||||
CPPUNIT_ASSERT(String("foo ").stripWhiteSpace() == String("foo"));
|
||||
CPPUNIT_ASSERT(String(" foo").stripWhiteSpace() == String("foo"));
|
||||
CPPUNIT_ASSERT(String("foo").stripWhiteSpace() == String("foo"));
|
||||
CPPUNIT_ASSERT(String("f o o").stripWhiteSpace() == String("f o o"));
|
||||
CPPUNIT_ASSERT(String(" f o o ").stripWhiteSpace() == String("f o o"));
|
||||
|
||||
CPPUNIT_ASSERT(memcmp(String("foo").data(String::Latin1).data(), "foo", 3) == 0);
|
||||
CPPUNIT_ASSERT(memcmp(String("f").data(String::Latin1).data(), "f", 1) == 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user