From cce65b8dd2f9cb22a20acb891a8a83cdfce90c7b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Jan 2009 04:58:16 -0400 Subject: Added a more efficient amount_t::operator==, which changed semantics slightly. --- test/unit/t_amount.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/unit/t_amount.cc') diff --git a/test/unit/t_amount.cc b/test/unit/t_amount.cc index 577a4aaf..d0a49119 100644 --- a/test/unit/t_amount.cc +++ b/test/unit/t_amount.cc @@ -140,10 +140,9 @@ void AmountTestCase::testConstructors() amount_t x10(x6); amount_t x11(x8); - assertThrow(amount_t(0L) == x0, amount_error); - assertThrow(amount_t() == x0, amount_error); - assertThrow(amount_t("0") == x0, amount_error); - assertThrow(amount_t("0.0") == x0, amount_error); + assertEqual(amount_t(), x0); + assertNotEqual(amount_t("0"), x0); + assertNotEqual(amount_t("0.0"), x0); assertEqual(x2, x1); assertEqual(x5, x1); assertEqual(x7, x1); -- cgit v1.2.3