From 9c1389f4230d3257dd233f85148b24209fbb6dbe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 13 Aug 2008 18:21:39 -0400 Subject: Increase code coverage of the unit tests. --- test/UnitTests.cc | 1 + test/unit/t_amount.cc | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'test') 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); -- cgit v1.2.3