summaryrefslogtreecommitdiff
path: root/test/unit/t_commodity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/t_commodity.cc')
-rw-r--r--test/unit/t_commodity.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/unit/t_commodity.cc b/test/unit/t_commodity.cc
index 925b2cee..62ec557e 100644
--- a/test/unit/t_commodity.cc
+++ b/test/unit/t_commodity.cc
@@ -1,12 +1,18 @@
#include "t_commodity.h"
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "numerics");
+#include "utils.h"
+#include "amount.h"
+
+using namespace ledger;
+
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "math");
void CommodityTestCase::setUp() {
- ledger::set_session_context(&session);
+ amount_t::initialize();
}
+
void CommodityTestCase::tearDown() {
- ledger::set_session_context();
+ amount_t::shutdown();
}
void CommodityTestCase::testPriceHistory()