summaryrefslogtreecommitdiff
path: root/test/numerics/t_valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-28 03:42:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-28 03:42:18 -0400
commit63039ade9209bced70b3e4dbb673ad90286d310a (patch)
treece6b2a25973a21a6a93bf5ab15ba3e1a01a51c7c /test/numerics/t_valexpr.cc
parente14d7b6e543850bae6c46f01a80b11c41ea383cf (diff)
downloadfork-ledger-63039ade9209bced70b3e4dbb673ad90286d310a.tar.gz
fork-ledger-63039ade9209bced70b3e4dbb673ad90286d310a.tar.bz2
fork-ledger-63039ade9209bced70b3e4dbb673ad90286d310a.zip
Added the skeleton for the upcoming value_expr unit tests.
Diffstat (limited to 'test/numerics/t_valexpr.cc')
-rw-r--r--test/numerics/t_valexpr.cc25
1 files changed, 25 insertions, 0 deletions
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()
+{
+}