diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/numerics/BasicAmount.cc | 7 | ||||
-rw-r--r-- | tests/python/numerics/BasicAmount.py | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/numerics/BasicAmount.cc b/tests/numerics/BasicAmount.cc index a6772b13..6d9e3dc7 100644 --- a/tests/numerics/BasicAmount.cc +++ b/tests/numerics/BasicAmount.cc @@ -149,6 +149,13 @@ void BasicAmountTestCase::testComparisons() CPPUNIT_ASSERT(x3 < x1); CPPUNIT_ASSERT(x3 < x4); + CPPUNIT_ASSERT(x1 < 100L); + CPPUNIT_ASSERT(x1 < 100UL); + CPPUNIT_ASSERT(x1 < 100.0); + CPPUNIT_ASSERT(100L > x1); + CPPUNIT_ASSERT(100UL > x1); + CPPUNIT_ASSERT(100.0 > x1); + CPPUNIT_ASSERT(x0.valid()); CPPUNIT_ASSERT(x1.valid()); CPPUNIT_ASSERT(x2.valid()); diff --git a/tests/python/numerics/BasicAmount.py b/tests/python/numerics/BasicAmount.py index 9654f6a7..07c1f426 100644 --- a/tests/python/numerics/BasicAmount.py +++ b/tests/python/numerics/BasicAmount.py @@ -475,6 +475,11 @@ class BasicAmountTestCase(unittest.TestCase): self.assertTrue(x3 < x1) self.assertTrue(x3 < x4) + self.assertTrue(x1 < 100) + self.assertTrue(x1 < 100.0) + self.assertTrue(100 > x1) + self.assertTrue(100.0 > x1) + self.assertTrue(x0.valid()) self.assertTrue(x1.valid()) self.assertTrue(x2.valid()) |