From 9039e728b2015b54dc87da52f450c27683303392 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Apr 2007 21:22:24 +0000 Subject: All system headers (except Boost) now included through system.hh; also, added support for pre-compiled headers since I'm now using a centralized resource for system headers. --- tests/UnitTests.h | 4 ++++ tests/corelib/numerics/BasicAmount.cc | 8 ++------ tests/corelib/numerics/Commodity.cc | 3 --- tests/corelib/numerics/CommodityAmount.cc | 3 --- tests/corelib/numerics/DateTime.cc | 6 ------ 5 files changed, 6 insertions(+), 18 deletions(-) (limited to 'tests') diff --git a/tests/UnitTests.h b/tests/UnitTests.h index 49da8f2a..5edfb5d3 100644 --- a/tests/UnitTests.h +++ b/tests/UnitTests.h @@ -1,6 +1,10 @@ #ifndef _UNITTESTS_H #define _UNITTESTS_H +#include "ledger.h" + +using namespace ledger; + #include #include #include diff --git a/tests/corelib/numerics/BasicAmount.cc b/tests/corelib/numerics/BasicAmount.cc index 143b8c38..fbab8877 100644 --- a/tests/corelib/numerics/BasicAmount.cc +++ b/tests/corelib/numerics/BasicAmount.cc @@ -1,16 +1,12 @@ #include "BasicAmount.h" -#include "ledger.h" - -using namespace ledger; CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BasicAmountTestCase, "numerics"); void BasicAmountTestCase::setUp() { - amount_t::initialize(); + ledger::initialize(); } void BasicAmountTestCase::tearDown() { - amount_t::shutdown(); - assert(live_count.size() == 0); + ledger::shutdown(); } void BasicAmountTestCase::testConstructors() diff --git a/tests/corelib/numerics/Commodity.cc b/tests/corelib/numerics/Commodity.cc index f74f671c..e43ee7b7 100644 --- a/tests/corelib/numerics/Commodity.cc +++ b/tests/corelib/numerics/Commodity.cc @@ -1,7 +1,4 @@ #include "Commodity.h" -#include "ledger.h" - -using namespace ledger; CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "numerics"); diff --git a/tests/corelib/numerics/CommodityAmount.cc b/tests/corelib/numerics/CommodityAmount.cc index 9e27dba3..afdbe89e 100644 --- a/tests/corelib/numerics/CommodityAmount.cc +++ b/tests/corelib/numerics/CommodityAmount.cc @@ -1,7 +1,4 @@ #include "CommodityAmount.h" -#include "ledger.h" - -using namespace ledger; #define internalAmount(x) amount_t::exact(x) diff --git a/tests/corelib/numerics/DateTime.cc b/tests/corelib/numerics/DateTime.cc index 33873b4a..ecdf32b7 100644 --- a/tests/corelib/numerics/DateTime.cc +++ b/tests/corelib/numerics/DateTime.cc @@ -1,10 +1,4 @@ #include "DateTimeTest.h" -#include "ledger.h" -#include "acconf.h" - -#include - -using namespace ledger; CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(DateTimeTestCase, "numerics"); -- cgit v1.2.3