summaryrefslogtreecommitdiff
path: root/comphelper/qa/string/test_string.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/qa/string/test_string.cxx')
-rw-r--r--comphelper/qa/string/test_string.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index b775e01804da..96706ace353d 100644
--- a/comphelper/qa/string/test_string.cxx
+++ b/comphelper/qa/string/test_string.cxx
@@ -53,7 +53,7 @@ public:
void testTokenCount();
void testDecimalStringToNumber();
void testIsdigitAsciiString();
- void testIndexOfL();
+ void testReverseString();
CPPUNIT_TEST_SUITE(TestString);
CPPUNIT_TEST(testNatural);
@@ -65,6 +65,7 @@ public:
CPPUNIT_TEST(testTokenCount);
CPPUNIT_TEST(testDecimalStringToNumber);
CPPUNIT_TEST(testIsdigitAsciiString);
+ CPPUNIT_TEST(testReverseString);
CPPUNIT_TEST_SUITE_END();
};
@@ -396,6 +397,14 @@ void TestString::testTokenCount()
CPPUNIT_ASSERT(nOut == 0);
}
+void TestString::testReverseString()
+{
+ ::rtl::OString aIn("ABC");
+ ::rtl::OString aOut = ::comphelper::string::reverseString(aIn);
+
+ CPPUNIT_ASSERT(aOut == "CBA");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(TestString);
}