summaryrefslogtreecommitdiff
path: root/tests/numerics/BasicAmount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:27:29 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:40 -0400
commit6ec2f6b59be2fe8e621e97a39836e7033fd0f240 (patch)
treee84984047da8e00d9ac9697fe4ecb354e3190028 /tests/numerics/BasicAmount.cc
parentd8498372037a4d0c272547ae48046b2182bcd4b1 (diff)
downloadfork-ledger-6ec2f6b59be2fe8e621e97a39836e7033fd0f240.tar.gz
fork-ledger-6ec2f6b59be2fe8e621e97a39836e7033fd0f240.tar.bz2
fork-ledger-6ec2f6b59be2fe8e621e97a39836e7033fd0f240.zip
Reconfigure some of the operators.
Diffstat (limited to 'tests/numerics/BasicAmount.cc')
-rw-r--r--tests/numerics/BasicAmount.cc7
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());