summaryrefslogtreecommitdiff
path: root/test/numerics/t_commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-05-09 05:17:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-05-09 05:17:44 -0400
commitdaee971cbcde694b5f7a3ce657df5ef220210912 (patch)
tree4029f19a26ec2e5d92f244cfbdffe1cd1da22508 /test/numerics/t_commodity.cc
parentd159501993cfd0215f94f0e5e16796558417b681 (diff)
downloadledger-daee971cbcde694b5f7a3ce657df5ef220210912.tar.gz
ledger-daee971cbcde694b5f7a3ce657df5ef220210912.tar.bz2
ledger-daee971cbcde694b5f7a3ce657df5ef220210912.zip
Got the unit tests compiling again (though not running yet).
Diffstat (limited to 'test/numerics/t_commodity.cc')
-rw-r--r--test/numerics/t_commodity.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/numerics/t_commodity.cc b/test/numerics/t_commodity.cc
index f9892287..64cddfbb 100644
--- a/test/numerics/t_commodity.cc
+++ b/test/numerics/t_commodity.cc
@@ -3,10 +3,10 @@
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "numerics");
void CommodityTestCase::setUp() {
- ledger::set_session_context(&session);
+ //ledger::set_session_context(&session);
}
void CommodityTestCase::tearDown() {
- ledger::set_session_context();
+ //ledger::set_session_context();
}
void CommodityTestCase::testPriceHistory()
@@ -40,7 +40,7 @@ void CommodityTestCase::testPriceHistory()
assertTrue(amt1);
assertEqual(amount_t("$1831.83"), *amt1);
- optional<amount_t> amt2 = x1.value(now);
+ optional<amount_t> amt2 = x1.value(current_moment);
assertTrue(amt2);
assertEqual(amount_t("$2124.12"), *amt2);