diff options
Diffstat (limited to 'tests/corelib/numerics/Commodity.cc')
-rw-r--r-- | tests/corelib/numerics/Commodity.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/corelib/numerics/Commodity.cc b/tests/corelib/numerics/Commodity.cc index a2dbb58d..f74f671c 100644 --- a/tests/corelib/numerics/Commodity.cc +++ b/tests/corelib/numerics/Commodity.cc @@ -5,8 +5,12 @@ using namespace ledger; CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "numerics"); -void CommodityTestCase::setUp() {} -void CommodityTestCase::tearDown() {} +void CommodityTestCase::setUp() { + amount_t::initialize(); +} +void CommodityTestCase::tearDown() { + amount_t::shutdown(); +} void CommodityTestCase::testPriceHistory() { |