diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-09 05:44:06 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-09 05:44:06 -0400 |
commit | 14476a63f4abbdce5311ace031b7345a34af060b (patch) | |
tree | c1900d4f2a95db2cdb4cf7404669fe668acedb4a /test/unit | |
parent | e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f (diff) | |
parent | 474d95adeb09b0c13f0e19b336b5b01ee69c6275 (diff) | |
download | fork-ledger-14476a63f4abbdce5311ace031b7345a34af060b.tar.gz fork-ledger-14476a63f4abbdce5311ace031b7345a34af060b.tar.bz2 fork-ledger-14476a63f4abbdce5311ace031b7345a34af060b.zip |
Merge branch 'next'
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/t_commodity.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/t_commodity.cc b/test/unit/t_commodity.cc index 3d84ead6..b8555202 100644 --- a/test/unit/t_commodity.cc +++ b/test/unit/t_commodity.cc @@ -73,11 +73,11 @@ void CommodityTestCase::testPriceHistory() cad.add_price(jan17_06, amount_t("$1.11")); #ifndef NOT_FOR_PYTHON - optional<amount_t> amt = x1.value(false, feb28_07sbm); + optional<amount_t> amt = x1.value(feb28_07sbm); assertTrue(amt); assertEqual(amount_t("$1831.83"), *amt); - amt = x1.value(false, CURRENT_TIME()); + amt = x1.value(CURRENT_TIME()); assertTrue(amt); assertEqual(string("$2124.12"), amt->to_string()); #ifdef INTEGER_MATH @@ -86,18 +86,18 @@ void CommodityTestCase::testPriceHistory() assertEqual(string("$2124.122"), amt->to_fullstring()); #endif - amt = x1.value(false, CURRENT_TIME(), euro); + amt = x1.value(CURRENT_TIME(), euro); assertTrue(amt); assertEqual(string("EUR 1366.87"), amt->rounded().to_string()); // Add a newer Euro pricing aapl.add_price(jan17_07, amount_t("EUR 23.00")); - amt = x1.value(false, CURRENT_TIME(), euro); + amt = x1.value(CURRENT_TIME(), euro); assertTrue(amt); assertEqual(string("EUR 2302.30"), amt->to_string()); - amt = x1.value(false, CURRENT_TIME(), cad); + amt = x1.value(CURRENT_TIME(), cad); assertTrue(amt); assertEqual(string("CAD 3223.22"), amt->to_string()); #endif // NOT_FOR_PYTHON |