From 935534aa5327a5b605e84e4643591fd6cc585594 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Fri, 28 Oct 2016 15:19:35 +0900 Subject: [PATCH] Backport a test from taglib2 branch. --- tests/test_string.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_string.cpp b/tests/test_string.cpp index 3fa28b69..f9f1a2dd 100644 --- a/tests/test_string.cpp +++ b/tests/test_string.cpp @@ -46,6 +46,7 @@ class TestString : public CppUnit::TestFixture CPPUNIT_TEST(testFromInt); CPPUNIT_TEST(testSubstr); CPPUNIT_TEST(testNewline); + CPPUNIT_TEST(testUpper); CPPUNIT_TEST(testEncodeNonLatin1); CPPUNIT_TEST(testEncodeEmpty); CPPUNIT_TEST(testIterator); @@ -270,6 +271,14 @@ public: CPPUNIT_ASSERT_EQUAL(L'\x0a', String(crlf)[4]); } + void testUpper() + { + String s1 = "tagLIB 012 strING"; + String s2 = s1.upper(); + CPPUNIT_ASSERT_EQUAL(String("tagLIB 012 strING"), s1); + CPPUNIT_ASSERT_EQUAL(String("TAGLIB 012 STRING"), s2); + } + void testEncodeNonLatin1() { const String jpn(L"\u65E5\u672C\u8A9E"); -- 2.40.0