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/CommodityAmount.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/numerics/CommodityAmount.cc') diff --git a/tests/numerics/CommodityAmount.cc b/tests/numerics/CommodityAmount.cc index ffedbdac..e443d6a1 100644 --- a/tests/numerics/CommodityAmount.cc +++ b/tests/numerics/CommodityAmount.cc @@ -465,8 +465,8 @@ void CommodityAmountTestCase::testConversion() 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