summaryrefslogtreecommitdiff
path: root/tests/corelib/numerics/BasicAmount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/corelib/numerics/BasicAmount.cc')
-rw-r--r--tests/corelib/numerics/BasicAmount.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/corelib/numerics/BasicAmount.cc b/tests/corelib/numerics/BasicAmount.cc
index fbab8877..90cf26ec 100644
--- a/tests/corelib/numerics/BasicAmount.cc
+++ b/tests/corelib/numerics/BasicAmount.cc
@@ -339,7 +339,7 @@ void BasicAmountTestCase::testIntegerDivision()
amount_t x1(123L);
amount_t y1(456L);
- assertThrow(x1 / 0L, amount_error *);
+ assertThrow(x1 / 0L, amount_exception);
assertEqual(amount_t(0L), amount_t(0L) / x1);
assertEqual(amount_t(0L), 0L / x1);
assertEqual(x1, x1 / 1L);
@@ -376,7 +376,7 @@ void BasicAmountTestCase::testFractionalDivision()
amount_t x1(123.123);
amount_t y1(456.456);
- assertThrow(x1 / 0L, amount_error *);
+ assertThrow(x1 / 0L, amount_exception);
assertEqual(amount_t("0.008121959"), amount_t(1.0) / x1);
assertEqual(amount_t("0.008121959"), 1.0 / x1);
assertEqual(x1, x1 / 1.0);