From 63039ade9209bced70b3e4dbb673ad90286d310a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 28 Jul 2008 03:42:18 -0400 Subject: Added the skeleton for the upcoming value_expr unit tests. --- test/numerics/t_valexpr.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/numerics/t_valexpr.cc (limited to 'test/numerics/t_valexpr.cc') diff --git a/test/numerics/t_valexpr.cc b/test/numerics/t_valexpr.cc new file mode 100644 index 00000000..026b4eec --- /dev/null +++ b/test/numerics/t_valexpr.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