aboutsummaryrefslogtreecommitdiff
path: root/test/common/rational.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/rational.h')
-rw-r--r--test/common/rational.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/common/rational.h b/test/common/rational.h
index 4248283ade..a55b0aed86 100644
--- a/test/common/rational.h
+++ b/test/common/rational.h
@@ -17,9 +17,18 @@ public:
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));