[Scummvm-cvs-logs] SF.net SVN: scummvm:[52617] scummvm/trunk/test/common/rational.h
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Tue Sep 7 11:19:25 CEST 2010
Revision: 52617
http://scummvm.svn.sourceforge.net/scummvm/?rev=52617&view=rev
Author: wjpalenstijn
Date: 2010-09-07 09:19:25 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
TESTS: Add more Rational (in)equality tests
This tests for the bug fixed by r52535, among other things.
Modified Paths:
--------------
scummvm/trunk/test/common/rational.h
Modified: scummvm/trunk/test/common/rational.h
===================================================================
--- scummvm/trunk/test/common/rational.h 2010-09-07 09:02:46 UTC (rev 52616)
+++ scummvm/trunk/test/common/rational.h 2010-09-07 09:19:25 UTC (rev 52617)
@@ -17,9 +17,18 @@
Common::Rational r6 = r5 - 1;
TS_ASSERT(r4 == r5);
+ TS_ASSERT(!(r4 != r5));
+ TS_ASSERT(r4 != r6);
+ TS_ASSERT(!(r4 == r6));
+
TS_ASSERT(-r4 == -r5);
+ TS_ASSERT(r0 == 2);
+ TS_ASSERT(!(r0 != 2));
+ TS_ASSERT(!(r3 == 2));
+ TS_ASSERT(r3 != 2);
+
TS_ASSERT( r4 > r6);
TS_ASSERT( r4 >= r6);
TS_ASSERT(!(r4 < r6));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list