diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-22 16:53:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-22 16:53:35 (GMT) |
commit | a8698c4d671cf3c957f2d67a4e8cedde49dae8a3 (patch) | |
tree | c01c1023b6c6b350f67b5294aee41ea62c2bf362 /Swiften/Base/UnitTest | |
parent | abbfb6f8c410104c883c54e6f483c8c37f954d56 (diff) | |
download | swift-a8698c4d671cf3c957f2d67a4e8cedde49dae8a3.zip swift-a8698c4d671cf3c957f2d67a4e8cedde49dae8a3.tar.bz2 |
Use lowercase app name for application dir on Un*x systems.
Diffstat (limited to 'Swiften/Base/UnitTest')
-rw-r--r-- | Swiften/Base/UnitTest/StringTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Swiften/Base/UnitTest/StringTest.cpp b/Swiften/Base/UnitTest/StringTest.cpp index 0b7d207..2fa9f54 100644 --- a/Swiften/Base/UnitTest/StringTest.cpp +++ b/Swiften/Base/UnitTest/StringTest.cpp @@ -23,6 +23,7 @@ class StringTest : public CppUnit::TestFixture CPPUNIT_TEST(testReplaceAll_LastChar); CPPUNIT_TEST(testReplaceAll_ConsecutiveChars); CPPUNIT_TEST(testReplaceAll_MatchingReplace); + CPPUNIT_TEST(testGetLowerCase); CPPUNIT_TEST_SUITE_END(); public: @@ -141,6 +142,12 @@ class StringTest : public CppUnit::TestFixture CPPUNIT_ASSERT_EQUAL(String("abbbc"), testling); } + + void testGetLowerCase() { + String testling("aBcD e"); + + CPPUNIT_ASSERT_EQUAL(String("abcd e"), testling.getLowerCase()); + } }; CPPUNIT_TEST_SUITE_REGISTRATION(StringTest); |