aboutsummaryrefslogtreecommitdiff
path: root/test/common/rect.h
diff options
context:
space:
mode:
authorMax Horn2009-04-20 19:26:50 +0000
committerMax Horn2009-04-20 19:26:50 +0000
commitfaa911794953679a1fff24999878f79612dfc7f3 (patch)
tree5b05bb39fc9b395f6381ebf81f7f001d8f07a5ca /test/common/rect.h
parent6a7bb77305dc280e6af2afb4beb5cc06ca6350b8 (diff)
downloadscummvm-rg350-faa911794953679a1fff24999878f79612dfc7f3.tar.gz
scummvm-rg350-faa911794953679a1fff24999878f79612dfc7f3.tar.bz2
scummvm-rg350-faa911794953679a1fff24999878f79612dfc7f3.zip
TESTS: Code formatting; also changed some TS_ASSERT to TS_ASSERT_EQUALS
svn-id: r40026
Diffstat (limited to 'test/common/rect.h')
-rw-r--r--test/common/rect.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/common/rect.h b/test/common/rect.h
index ee709de482..7b68a3b844 100644
--- a/test/common/rect.h
+++ b/test/common/rect.h
@@ -5,8 +5,7 @@
class RectTestSuite : public CxxTest::TestSuite
{
public:
- void test_point_sqrDist( void )
- {
+ void test_point_sqrDist() {
Common::Point p0;
Common::Point p11(1, 1);
Common::Point p21(2, 1);
@@ -19,15 +18,13 @@ class RectTestSuite : public CxxTest::TestSuite
TS_ASSERT_EQUALS( p11.sqrDist(p23), (uint) 5 );
}
- void test_intersects( void )
- {
+ void test_intersects() {
TS_ASSERT( Common::Rect(0, 0, 2, 2).intersects(Common::Rect(0, 0, 1, 1)) );
TS_ASSERT( Common::Rect(0, 0, 2, 2).intersects(Common::Rect(1, 1, 2, 2)) );
TS_ASSERT( !Common::Rect(0, 0, 1, 1).intersects(Common::Rect(1, 1, 2, 2)) );
}
- void test_contains( void )
- {
+ void test_contains() {
Common::Rect r0;
Common::Rect r1(0, 0, 1, 1);
Common::Rect r2(0, 0, 2, 2);
@@ -44,8 +41,7 @@ class RectTestSuite : public CxxTest::TestSuite
TS_ASSERT( r2.contains(r2) );
}
- void test_extend( void )
- {
+ void test_extend() {
Common::Rect r0;
Common::Rect r1(0, 0, 1, 1);
Common::Rect r2(0, 0, 2, 2);