summaryrefslogtreecommitdiff
path: root/test/numerics/t_balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-12 01:37:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-05-08 02:50:18 -0400
commit289cc97d45bbd3a8cdfcc3371ade71715b75b000 (patch)
tree2b1ab8575232260c4eb779282e03f64783ccb756 /test/numerics/t_balance.cc
parent627769ccc88ae15c92c5c2e5896bb1d96f52e385 (diff)
downloadfork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.tar.gz
fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.tar.bz2
fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.zip
Exchanged old test files for the new testing code in was-v3.0.
Diffstat (limited to 'test/numerics/t_balance.cc')
-rw-r--r--test/numerics/t_balance.cc25
1 files changed, 25 insertions, 0 deletions
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()
+{
+}