summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-13 18:21:39 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-13 18:21:39 -0400
commit9c1389f4230d3257dd233f85148b24209fbb6dbe (patch)
tree27b10c35ce2f1f361112bf0301be8ba5ea59d047 /test
parentf900213daeb57ca653a1491ac36da94c76b7d017 (diff)
downloadfork-ledger-9c1389f4230d3257dd233f85148b24209fbb6dbe.tar.gz
fork-ledger-9c1389f4230d3257dd233f85148b24209fbb6dbe.tar.bz2
fork-ledger-9c1389f4230d3257dd233f85148b24209fbb6dbe.zip
Increase code coverage of the unit tests.
Diffstat (limited to 'test')
-rw-r--r--test/UnitTests.cc1
-rw-r--r--test/unit/t_amount.cc4
2 files changed, 1 insertions, 4 deletions
diff --git a/test/UnitTests.cc b/test/UnitTests.cc
index e176a055..f6a27d3e 100644
--- a/test/UnitTests.cc
+++ b/test/UnitTests.cc
@@ -15,6 +15,7 @@
CPPUNIT_REGISTRY_ADD_TO_DEFAULT("Framework");
CPPUNIT_REGISTRY_ADD_TO_DEFAULT("numerics");
+CPPUNIT_REGISTRY_ADD_TO_DEFAULT("utility");
// Create a sample test, which acts both as a template, and a
// verification that the basic framework is functioning.
diff --git a/test/unit/t_amount.cc b/test/unit/t_amount.cc
index 69d97af3..6fd78fa6 100644
--- a/test/unit/t_amount.cc
+++ b/test/unit/t_amount.cc
@@ -1348,13 +1348,9 @@ void AmountTestCase::testCommodityTruth()
if (x1)
assertTrue(true);
- else
- assertTrue(false);
if (x2)
assertTrue(true);
- else
- assertTrue(false);
assertValid(x1);
assertValid(x2);