From 103881ff80008b09608550de5b72b91509eb9fff Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 2 May 2007 03:05:10 +0000 Subject: First round of using boost/operators is done. --- tests/numerics/BasicAmount.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/numerics/BasicAmount.cc') diff --git a/tests/numerics/BasicAmount.cc b/tests/numerics/BasicAmount.cc index 626c3ba8..bcc5c2b5 100644 --- a/tests/numerics/BasicAmount.cc +++ b/tests/numerics/BasicAmount.cc @@ -415,8 +415,8 @@ void BasicAmountTestCase::testIntegerConversion() amount_t x1(123456L); assertEqual(true, bool(x1)); - assertEqual(123456L, long(x1)); - assertEqual(123456.0, double(x1)); + assertEqual(123456L, x1.to_long()); + assertEqual(123456.0, x1.to_double()); assertEqual(string("123456"), x1.to_string()); assertEqual(string("123456"), x1.quantity_string()); @@ -428,8 +428,8 @@ void BasicAmountTestCase::testFractionalConversion() amount_t x1(1234.56); assertEqual(true, bool(x1)); - assertEqual(1234L, long(x1)); - assertEqual(1234.56, double(x1)); + assertEqual(1234L, x1.to_long()); + assertEqual(1234.56, x1.to_double()); assertEqual(string("1234.56"), x1.to_string()); assertEqual(string("1234.56"), x1.quantity_string()); -- cgit v1.2.3