From 36cd8164049b570d9730a886e55d5a985bae1c2b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 5 Aug 2008 19:48:42 -0400 Subject: Moved the test sources around, so that all the unit tests are in test/unit. --- test/unit/t_expr.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/unit/t_expr.cc (limited to 'test/unit/t_expr.cc') diff --git a/test/unit/t_expr.cc b/test/unit/t_expr.cc new file mode 100644 index 00000000..026b4eec --- /dev/null +++ b/test/unit/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