summaryrefslogtreecommitdiff
path: root/tests/numerics/CommodityAmount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-03 06:11:04 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:36 -0400
commitc59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 (patch)
tree204d28bfa2bdbfe8d7f550877faa114c1e93859f /tests/numerics/CommodityAmount.cc
parentf9f24fab933266ab8e12da7eef4cc2a906f77350 (diff)
downloadledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.tar.gz
ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.tar.bz2
ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.zip
Revised how commodities are dealt with.
Diffstat (limited to 'tests/numerics/CommodityAmount.cc')
-rw-r--r--tests/numerics/CommodityAmount.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/numerics/CommodityAmount.cc b/tests/numerics/CommodityAmount.cc
index e443d6a1..3b38ea96 100644
--- a/tests/numerics/CommodityAmount.cc
+++ b/tests/numerics/CommodityAmount.cc
@@ -6,7 +6,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityAmountTestCase, "numerics");
void CommodityAmountTestCase::setUp()
{
- ledger::initialize();
+ ledger::set_session_context(&session);
// Cause the display precision for dollars to be initialized to 2.
amount_t x1("$1.00");
@@ -17,7 +17,8 @@ void CommodityAmountTestCase::setUp()
void CommodityAmountTestCase::tearDown()
{
amount_t::full_strings = false;
- ledger::shutdown();
+
+ ledger::set_session_context();
}
void CommodityAmountTestCase::testConstructors()