From 4518ea95408e2d5fe90a87159b88bb41734ec1dc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 29 Jul 2008 05:10:16 -0400 Subject: Value expression architecture is now rewritten, but the functionality of the old system (for example, the meaning of 'a') has yet to be restored. In the new scheme, this will be done by definition a function outside of the value expression logic, rather than the tight coupling between journal innards and value expressions that occurred in 2.x. --- test/numerics/t_expr.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/numerics/t_expr.cc (limited to 'test/numerics/t_expr.cc') diff --git a/test/numerics/t_expr.cc b/test/numerics/t_expr.cc new file mode 100644 index 00000000..026b4eec --- /dev/null +++ b/test/numerics/t_expr.cc @@ -0,0 +1,25 @@ +#include "t_valexpr.h" + +CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ValueExprTestCase, "numerics"); + +void ValueExprTestCase::setUp() +{ + ledger::set_session_context(&session); + + // Cause the display precision for dollars to be initialized to 2. + amount_t x1("$1.00"); + assertTrue(x1); + + amount_t::stream_fullstrings = true; // make reports from UnitTests accurate +} + +void ValueExprTestCase::tearDown() +{ + amount_t::stream_fullstrings = false; + + ledger::set_session_context(); +} + +void ValueExprTestCase::testConstructors() +{ +} -- cgit v1.2.3