From 705c92ddc33b050fd982aab728ef3eb7303e0af3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 22 Jul 2008 14:39:26 +0000 Subject: Added String::trim() method svn-id: r33203 --- test/common/str.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/common') 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() ); -- cgit v1.2.3