From 696897b0583ad52ebc6f7666525277847619a8ce Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 1 Jan 2009 15:06:43 +0000 Subject: Whoa! Removing trailing spaces. svn-id: r35648 --- test/common/func.h | 2 +- test/common/hashmap.h | 2 +- test/common/ptr.h | 4 ++-- test/common/queue.h | 4 ++-- test/common/stream.h | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'test/common') diff --git a/test/common/func.h b/test/common/func.h index bf9b2ddff9..607122505c 100644 --- a/test/common/func.h +++ b/test/common/func.h @@ -47,7 +47,7 @@ class FuncTestSuite : public CxxTest::TestSuite myFoos[i] = new Foo; int counter = 0; - + Common::for_each(myFoos, myFoos+4, Common::bind2nd(Common::mem_fun(&Foo::fooAdd), counter)); TS_ASSERT_EQUALS(counter, 4); diff --git a/test/common/hashmap.h b/test/common/hashmap.h index acde1da028..8e31f38676 100644 --- a/test/common/hashmap.h +++ b/test/common/hashmap.h @@ -95,7 +95,7 @@ class HashMapTestSuite : public CxxTest::TestSuite container.clear(); TS_ASSERT( container.begin() == container.end() ); } - + void test_hash_map_copy(void) { Common::HashMap map1, container2; map1[323] = 32; diff --git a/test/common/ptr.h b/test/common/ptr.h index 986330057c..3071c3c0ca 100644 --- a/test/common/ptr.h +++ b/test/common/ptr.h @@ -43,7 +43,7 @@ class PtrTestSuite : public CxxTest::TestSuite void test_deleter() { Deleter myDeleter; myDeleter.test = new bool(false); - + { Common::SharedPtr p(new int(1), myDeleter); } @@ -55,7 +55,7 @@ class PtrTestSuite : public CxxTest::TestSuite void test_compare() { Common::SharedPtr p1(new int(1)); Common::SharedPtr p2; - + TS_ASSERT(p1); TS_ASSERT(!p2); diff --git a/test/common/queue.h b/test/common/queue.h index 7eedec9a5d..e3c0cb0a19 100644 --- a/test/common/queue.h +++ b/test/common/queue.h @@ -34,7 +34,7 @@ public: void test_front_back_pop() { Common::Queue queue; - + queue.push( 42); queue.push(-23); @@ -49,7 +49,7 @@ public: queue.pop(); TS_ASSERT_EQUALS(queue.front(), 42); } - + void test_assign() { Common::Queue q1, q2; diff --git a/test/common/stream.h b/test/common/stream.h index a605d34a2c..4d332b8925 100644 --- a/test/common/stream.h +++ b/test/common/stream.h @@ -7,9 +7,9 @@ class ReadLineStreamTestSuite : public CxxTest::TestSuite { void test_readline(void) { byte contents[] = { 'a', 'b', '\n', '\n', 'c', '\n' }; Common::MemoryReadStream ms(contents, sizeof(contents)); - + char buffer[100]; - + TS_ASSERT(0 != ms.readLine_NEW(buffer, sizeof(buffer))); TS_ASSERT(0 == strcmp(buffer, "ab\n")); @@ -29,9 +29,9 @@ class ReadLineStreamTestSuite : public CxxTest::TestSuite { void test_readline2(void) { byte contents[] = { 'a', 'b', '\n', '\n', 'c' }; Common::MemoryReadStream ms(contents, sizeof(contents)); - + char buffer[100]; - + TS_ASSERT(0 != ms.readLine_NEW(buffer, sizeof(buffer))); TS_ASSERT(0 == strcmp(buffer, "ab\n")); -- cgit v1.2.3