diff options
author | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
commit | 696897b0583ad52ebc6f7666525277847619a8ce (patch) | |
tree | 5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /test/cxxtest/sample/mock | |
parent | 05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff) | |
download | scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2 scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip |
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'test/cxxtest/sample/mock')
-rw-r--r-- | test/cxxtest/sample/mock/Dice.h | 2 | ||||
-rw-r--r-- | test/cxxtest/sample/mock/MockStdlib.h | 2 | ||||
-rw-r--r-- | test/cxxtest/sample/mock/TestDice.h | 8 | ||||
-rw-r--r-- | test/cxxtest/sample/mock/roll.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/test/cxxtest/sample/mock/Dice.h b/test/cxxtest/sample/mock/Dice.h index 94271417e1..3a393ef262 100644 --- a/test/cxxtest/sample/mock/Dice.h +++ b/test/cxxtest/sample/mock/Dice.h @@ -5,7 +5,7 @@ class Dice { public: Dice(); - + unsigned roll(); }; diff --git a/test/cxxtest/sample/mock/MockStdlib.h b/test/cxxtest/sample/mock/MockStdlib.h index aee62bafe7..2434cb82cc 100644 --- a/test/cxxtest/sample/mock/MockStdlib.h +++ b/test/cxxtest/sample/mock/MockStdlib.h @@ -7,7 +7,7 @@ class MockStdlib : { public: unsigned lastSeed; - + void srand( unsigned seed ) { lastSeed = seed; diff --git a/test/cxxtest/sample/mock/TestDice.h b/test/cxxtest/sample/mock/TestDice.h index 35b3b7eec9..7607ccd6f8 100644 --- a/test/cxxtest/sample/mock/TestDice.h +++ b/test/cxxtest/sample/mock/TestDice.h @@ -16,14 +16,14 @@ public: { delete stdlib; } - + void test_Randomize_uses_time() { stdlib->nextTime = 12345; Dice dice; TS_ASSERT_EQUALS( stdlib->lastSeed, 12345 ); } - + void test_Roll() { Dice dice; @@ -47,7 +47,7 @@ public: stdlib->nextRand = 2; TS_ASSERT_EQUALS( dice.roll(), 3 ); - + class Five : public T::Base_rand { int rand() { return 5; } }; Five *five = new Five; @@ -55,7 +55,7 @@ public: TS_ASSERT_EQUALS( dice.roll(), 6 ); TS_ASSERT_EQUALS( dice.roll(), 6 ); delete five; - + stdlib->nextRand = 1; TS_ASSERT_EQUALS( dice.roll(), 2 ); } diff --git a/test/cxxtest/sample/mock/roll.cpp b/test/cxxtest/sample/mock/roll.cpp index 20ea967af3..75ca31bedd 100644 --- a/test/cxxtest/sample/mock/roll.cpp +++ b/test/cxxtest/sample/mock/roll.cpp @@ -6,6 +6,6 @@ int main() Dice dice; printf( "First roll: %u\n", dice.roll() ); printf( "Second roll: %u\n", dice.roll() ); - + return 0; } |