diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-30 00:43:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-30 00:43:54 -0400 |
commit | 9495ca740bc41ea7d88c064d5493816b354a2bf6 (patch) | |
tree | d8a634b28e4ff93551359f6a616068c7b2e1691c /test/unit | |
parent | 4d70052d2306ab12a8c43c09af9a9887debc4860 (diff) | |
download | fork-ledger-9495ca740bc41ea7d88c064d5493816b354a2bf6.tar.gz fork-ledger-9495ca740bc41ea7d88c064d5493816b354a2bf6.tar.bz2 fork-ledger-9495ca740bc41ea7d88c064d5493816b354a2bf6.zip |
Fixed the amount_t unit test.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/t_amount.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/t_amount.cc b/test/unit/t_amount.cc index 6f181555..69af0c24 100644 --- a/test/unit/t_amount.cc +++ b/test/unit/t_amount.cc @@ -79,7 +79,7 @@ void AmountTestCase::testParser() assertEqual(string("EUR 1000"), x19.to_string()); assertEqual(string("EUR 1000"), x20.to_string()); - x1.parse("$100.0000", AMOUNT_PARSE_NO_MIGRATE); + x1.parse("$100.0000", amount_t::PARSE_NO_MIGRATE); assertEqual(amount_t::precision_t(2), x12.commodity().precision()); assertEqual(x1.commodity(), x12.commodity()); assertEqual(x1, x12); @@ -89,27 +89,27 @@ void AmountTestCase::testParser() assertEqual(x0.commodity(), x12.commodity()); assertEqual(x0, x12); - x2.parse("$100.00", AMOUNT_PARSE_NO_REDUCE); + x2.parse("$100.00", amount_t::PARSE_NO_REDUCE); assertEqual(x2, x12); - x3.parse("$100.00", AMOUNT_PARSE_NO_MIGRATE | AMOUNT_PARSE_NO_REDUCE); + x3.parse("$100.00", amount_t::PARSE_NO_MIGRATE | amount_t::PARSE_NO_REDUCE); assertEqual(x3, x12); x4.parse("$100.00"); assertEqual(x4, x12); - x5.parse("$100.00", AMOUNT_PARSE_NO_MIGRATE); + x5.parse("$100.00", amount_t::PARSE_NO_MIGRATE); assertEqual(x5, x12); - x6.parse("$100.00", AMOUNT_PARSE_NO_REDUCE); + x6.parse("$100.00", amount_t::PARSE_NO_REDUCE); assertEqual(x6, x12); - x7.parse("$100.00", AMOUNT_PARSE_NO_MIGRATE | AMOUNT_PARSE_NO_REDUCE); + x7.parse("$100.00", amount_t::PARSE_NO_MIGRATE | amount_t::PARSE_NO_REDUCE); assertEqual(x7, x12); x8.parse("$100.00"); assertEqual(x8, x12); - x9.parse("$100.00", AMOUNT_PARSE_NO_MIGRATE); + x9.parse("$100.00", amount_t::PARSE_NO_MIGRATE); assertEqual(x9, x12); - x10.parse("$100.00", AMOUNT_PARSE_NO_REDUCE); + x10.parse("$100.00", amount_t::PARSE_NO_REDUCE); assertEqual(x10, x12); - x11.parse("$100.00", AMOUNT_PARSE_NO_MIGRATE | AMOUNT_PARSE_NO_REDUCE); + x11.parse("$100.00", amount_t::PARSE_NO_MIGRATE | amount_t::PARSE_NO_REDUCE); assertEqual(x11, x12); assertValid(x0); |