aboutsummaryrefslogtreecommitdiff
path: root/test/common/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/str.h')
-rw-r--r--test/common/str.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/common/str.h b/test/common/str.h
index 76574ea70f..e9a6eae422 100644
--- a/test/common/str.h
+++ b/test/common/str.h
@@ -16,6 +16,12 @@ class StringTestSuite : public CxxTest::TestSuite
TS_ASSERT( str == "str" );
}
+ void test_trim(void) {
+ Common::String str(" This is a s tring with spaces ");
+ str.trim();
+ TS_ASSERT( str == "This is a s tring with spaces" );
+ }
+
void test_empty_clear(void) {
Common::String str("test");
TS_ASSERT( !str.empty() );