summaryrefslogtreecommitdiff
path: root/test/numerics
diff options
context:
space:
mode:
Diffstat (limited to 'test/numerics')
-rw-r--r--test/numerics/t_amount.cc4
-rw-r--r--test/numerics/t_amount.h2
-rw-r--r--test/numerics/t_balance.cc4
-rw-r--r--test/numerics/t_balance.h2
-rw-r--r--test/numerics/t_commodity.cc6
-rw-r--r--test/numerics/t_commodity.h2
6 files changed, 10 insertions, 10 deletions
diff --git a/test/numerics/t_amount.cc b/test/numerics/t_amount.cc
index 37e7ebae..a96c7e2f 100644
--- a/test/numerics/t_amount.cc
+++ b/test/numerics/t_amount.cc
@@ -4,7 +4,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AmountTestCase, "numerics");
void AmountTestCase::setUp()
{
- ledger::set_session_context(&session);
+ //ledger::set_session_context(&session);
// Cause the display precision for dollars to be initialized to 2.
amount_t x1("$1.00");
@@ -17,7 +17,7 @@ void AmountTestCase::tearDown()
{
amount_t::stream_fullstrings = false;
- ledger::set_session_context();
+ //ledger::set_session_context();
}
void AmountTestCase::testParser()
diff --git a/test/numerics/t_amount.h b/test/numerics/t_amount.h
index 2d5a327a..86487cd2 100644
--- a/test/numerics/t_amount.h
+++ b/test/numerics/t_amount.h
@@ -52,7 +52,7 @@ class AmountTestCase : public CPPUNIT_NS::TestCase
CPPUNIT_TEST_SUITE_END();
public:
- ledger::session_t session;
+ //ledger::session_t session;
AmountTestCase() {}
virtual ~AmountTestCase() {}
diff --git a/test/numerics/t_balance.cc b/test/numerics/t_balance.cc
index ca759836..2183a081 100644
--- a/test/numerics/t_balance.cc
+++ b/test/numerics/t_balance.cc
@@ -4,7 +4,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BalanceTestCase, "numerics");
void BalanceTestCase::setUp()
{
- ledger::set_session_context(&session);
+ //ledger::set_session_context(&session);
// Cause the display precision for dollars to be initialized to 2.
amount_t x1("$1.00");
@@ -17,7 +17,7 @@ void BalanceTestCase::tearDown()
{
amount_t::stream_fullstrings = false;
- ledger::set_session_context();
+ //ledger::set_session_context();
}
void BalanceTestCase::testConstructors()
diff --git a/test/numerics/t_balance.h b/test/numerics/t_balance.h
index 7c27f7e8..788a1c11 100644
--- a/test/numerics/t_balance.h
+++ b/test/numerics/t_balance.h
@@ -12,7 +12,7 @@ class BalanceTestCase : public CPPUNIT_NS::TestCase
CPPUNIT_TEST_SUITE_END();
public:
- ledger::session_t session;
+ //ledger::session_t session;
BalanceTestCase() {}
virtual ~BalanceTestCase() {}
diff --git a/test/numerics/t_commodity.cc b/test/numerics/t_commodity.cc
index f9892287..64cddfbb 100644
--- a/test/numerics/t_commodity.cc
+++ b/test/numerics/t_commodity.cc
@@ -3,10 +3,10 @@
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "numerics");
void CommodityTestCase::setUp() {
- ledger::set_session_context(&session);
+ //ledger::set_session_context(&session);
}
void CommodityTestCase::tearDown() {
- ledger::set_session_context();
+ //ledger::set_session_context();
}
void CommodityTestCase::testPriceHistory()
@@ -40,7 +40,7 @@ void CommodityTestCase::testPriceHistory()
assertTrue(amt1);
assertEqual(amount_t("$1831.83"), *amt1);
- optional<amount_t> amt2 = x1.value(now);
+ optional<amount_t> amt2 = x1.value(current_moment);
assertTrue(amt2);
assertEqual(amount_t("$2124.12"), *amt2);
diff --git a/test/numerics/t_commodity.h b/test/numerics/t_commodity.h
index ed739751..635b2a61 100644
--- a/test/numerics/t_commodity.h
+++ b/test/numerics/t_commodity.h
@@ -15,7 +15,7 @@ class CommodityTestCase : public CPPUNIT_NS::TestCase
CPPUNIT_TEST_SUITE_END();
public:
- ledger::session_t session;
+ //ledger::session_t session;
CommodityTestCase() {}
virtual ~CommodityTestCase() {}