aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
authorMax Horn2008-07-22 14:39:26 +0000
committerMax Horn2008-07-22 14:39:26 +0000
commit705c92ddc33b050fd982aab728ef3eb7303e0af3 (patch)
tree3499f2395202128c051f5cd78e5c368606eefb55 /test/common
parentc92f154b90ef5c09e500978d6e60f9d8f2db1868 (diff)
downloadscummvm-rg350-705c92ddc33b050fd982aab728ef3eb7303e0af3.tar.gz
scummvm-rg350-705c92ddc33b050fd982aab728ef3eb7303e0af3.tar.bz2
scummvm-rg350-705c92ddc33b050fd982aab728ef3eb7303e0af3.zip
Added String::trim() method
svn-id: r33203
Diffstat (limited to 'test/common')
-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() );