summaryrefslogtreecommitdiff
path: root/tests/numerics
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-16 05:38:19 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:52 -0400
commit74ecceb2ba0cb1592f570bcb52619f882c15bd27 (patch)
tree7a59caab0c1f17be2ede0582c954a705187f5a14 /tests/numerics
parente309cac9c17e989bb91db137db6d390b3ccbb29a (diff)
downloadfork-ledger-74ecceb2ba0cb1592f570bcb52619f882c15bd27.tar.gz
fork-ledger-74ecceb2ba0cb1592f570bcb52619f882c15bd27.tar.bz2
fork-ledger-74ecceb2ba0cb1592f570bcb52619f882c15bd27.zip
Revised xpath_t::path_t
Diffstat (limited to 'tests/numerics')
-rw-r--r--tests/numerics/t_amount.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/numerics/t_amount.cc b/tests/numerics/t_amount.cc
index a70959a4..a47e9bb3 100644
--- a/tests/numerics/t_amount.cc
+++ b/tests/numerics/t_amount.cc
@@ -357,10 +357,10 @@ void AmountTestCase::testCommodityEquality()
assertTrue(x0.is_null());
assertThrow(x0.is_zero(), amount_error);
assertThrow(x0.is_realzero(), amount_error);
- assertThrow(x0.sign() == 0, amount_error);
- assertThrow(x0.compare(x1) < 0, amount_error);
- assertThrow(x0.compare(x2) > 0, amount_error);
- assertThrow(x0.compare(x0) == 0, amount_error);
+ assertThrow(assert(x0.sign() == 0), amount_error);
+ assertThrow(assert(x0.compare(x1) < 0), amount_error);
+ assertThrow(assert(x0.compare(x2) > 0), amount_error);
+ assertThrow(assert(x0.compare(x0) == 0), amount_error);
assertTrue(x1 != x2);
assertTrue(x1 != x4);
@@ -1311,7 +1311,7 @@ void AmountTestCase::testTruth()
amount_t x1("1234");
amount_t x2("1234.56");
- assertThrow(x0 ? 1 : 0, amount_error);
+ assertThrow(assert(x0 ? 1 : 0), amount_error);
assertTrue(x1);
assertTrue(x2);