diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-25 01:10:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-25 01:10:05 -0400 |
commit | 79a79766000a6440f651af50cfac3646171e8f0a (patch) | |
tree | 1b5a9a419ffd65770fd36ec55f9c0a608e5b1045 /test/unit/t_balance.cc | |
parent | 1ae1033090faf566f8577cc63ac10a2d4e0e1f7f (diff) | |
download | fork-ledger-79a79766000a6440f651af50cfac3646171e8f0a.tar.gz fork-ledger-79a79766000a6440f651af50cfac3646171e8f0a.tar.bz2 fork-ledger-79a79766000a6440f651af50cfac3646171e8f0a.zip |
Reorganized Ledger so that it builds as 7 separate libraries. This is mainly
to prove to myself that it has proper decoupling between prior code areas.
Diffstat (limited to 'test/unit/t_balance.cc')
-rw-r--r-- | test/unit/t_balance.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/t_balance.cc b/test/unit/t_balance.cc index ca759836..93d97d6a 100644 --- a/test/unit/t_balance.cc +++ b/test/unit/t_balance.cc @@ -1,10 +1,15 @@ #include "t_balance.h" -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BalanceTestCase, "numerics"); +#include "utils.h" +#include "amount.h" + +using namespace ledger; + +CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BalanceTestCase, "math"); void BalanceTestCase::setUp() { - ledger::set_session_context(&session); + amount_t::initialize(); // Cause the display precision for dollars to be initialized to 2. amount_t x1("$1.00"); @@ -16,8 +21,7 @@ void BalanceTestCase::setUp() void BalanceTestCase::tearDown() { amount_t::stream_fullstrings = false; - - ledger::set_session_context(); + amount_t::shutdown(); } void BalanceTestCase::testConstructors() |