From c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 May 2007 06:11:04 +0000 Subject: Revised how commodities are dealt with. --- tests/numerics/BasicAmount.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/numerics/BasicAmount.cc') diff --git a/tests/numerics/BasicAmount.cc b/tests/numerics/BasicAmount.cc index de249ae5..aed682a6 100644 --- a/tests/numerics/BasicAmount.cc +++ b/tests/numerics/BasicAmount.cc @@ -3,10 +3,10 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BasicAmountTestCase, "numerics"); void BasicAmountTestCase::setUp() { - ledger::initialize(); + ledger::set_session_context(&session); } void BasicAmountTestCase::tearDown() { - ledger::shutdown(); + ledger::set_session_context(); } void BasicAmountTestCase::testConstructors() @@ -17,8 +17,8 @@ void BasicAmountTestCase::testConstructors() amount_t x3(123.456); amount_t x5("123456"); amount_t x6("123.456"); - amount_t x7(string("123456")); - amount_t x8(string("123.456")); + amount_t x7(std::string("123456")); + amount_t x8(std::string("123.456")); amount_t x9(x3); amount_t x10(x6); amount_t x11(x8); -- cgit v1.2.3