From 289cc97d45bbd3a8cdfcc3371ade71715b75b000 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Apr 2008 01:37:50 -0400 Subject: Exchanged old test files for the new testing code in was-v3.0. --- test/numerics/t_balance.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/numerics/t_balance.cc (limited to 'test/numerics/t_balance.cc') diff --git a/test/numerics/t_balance.cc b/test/numerics/t_balance.cc new file mode 100644 index 00000000..ca759836 --- /dev/null +++ b/test/numerics/t_balance.cc @@ -0,0 +1,25 @@ +#include "t_balance.h" + +CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BalanceTestCase, "numerics"); + +void BalanceTestCase::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 BalanceTestCase::tearDown() +{ + amount_t::stream_fullstrings = false; + + ledger::set_session_context(); +} + +void BalanceTestCase::testConstructors() +{ +} -- cgit v1.2.3