diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/numerics/t_amount.cc | 10 |
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); |