diff options
Diffstat (limited to 'tests/numerics/BasicAmount.cc')
-rw-r--r-- | tests/numerics/BasicAmount.cc | 7 |
1 files changed, 7 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()); |