summaryrefslogtreecommitdiff
path: root/test/unit/t_commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-11 03:55:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-11 03:55:25 -0500
commit363670d35bf451ff8ce636c071da73a0d93c514a (patch)
tree153899e85596849bcbe96c820d5d55bbc61f1d8b /test/unit/t_commodity.cc
parent2303aa993cf41ad5bde8f8f5722bd265c11e3aa7 (diff)
downloadfork-ledger-363670d35bf451ff8ce636c071da73a0d93c514a.tar.gz
fork-ledger-363670d35bf451ff8ce636c071da73a0d93c514a.tar.bz2
fork-ledger-363670d35bf451ff8ce636c071da73a0d93c514a.zip
Tighten up argument passing related to fn_market()
Diffstat (limited to 'test/unit/t_commodity.cc')
-rw-r--r--test/unit/t_commodity.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/t_commodity.cc b/test/unit/t_commodity.cc
index 6a6f27aa..8caeb694 100644
--- a/test/unit/t_commodity.cc
+++ b/test/unit/t_commodity.cc
@@ -92,18 +92,18 @@ BOOST_AUTO_TEST_CASE(testPriceHistory)
BOOST_CHECK_EQUAL(string("$2124.122"), amt->to_fullstring());
#endif
- amt = x1.value(CURRENT_TIME(), euro);
+ amt = x1.value(CURRENT_TIME(), &euro);
BOOST_CHECK(amt);
BOOST_CHECK_EQUAL(string("EUR 1787.50"), amt->rounded().to_string());
// Add a newer Euro pricing
aapl.add_price(jan17_07, amount_t("EUR 23.00"));
- amt = x1.value(CURRENT_TIME(), euro);
+ amt = x1.value(CURRENT_TIME(), &euro);
BOOST_CHECK(amt);
BOOST_CHECK_EQUAL(string("EUR 2302.30"), amt->to_string());
- amt = x1.value(CURRENT_TIME(), cad);
+ amt = x1.value(CURRENT_TIME(), &cad);
BOOST_CHECK(amt);
BOOST_CHECK_EQUAL(string("CAD 3223.22"), amt->to_string());
#endif // NOT_FOR_PYTHON