diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-23 21:22:24 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:31 -0400 |
commit | 9039e728b2015b54dc87da52f450c27683303392 (patch) | |
tree | ac914e05db5dc03f6971cd8c165ee3791a614d18 /tests | |
parent | 340dacf118f2f457ffc962cb46e8b3ef59017376 (diff) | |
download | fork-ledger-9039e728b2015b54dc87da52f450c27683303392.tar.gz fork-ledger-9039e728b2015b54dc87da52f450c27683303392.tar.bz2 fork-ledger-9039e728b2015b54dc87da52f450c27683303392.zip |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UnitTests.h | 4 | ||||
-rw-r--r-- | tests/corelib/numerics/BasicAmount.cc | 8 | ||||
-rw-r--r-- | tests/corelib/numerics/Commodity.cc | 3 | ||||
-rw-r--r-- | tests/corelib/numerics/CommodityAmount.cc | 3 | ||||
-rw-r--r-- | tests/corelib/numerics/DateTime.cc | 6 |
5 files changed, 6 insertions, 18 deletions
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 <cppunit/extensions/HelperMacros.h> #include <cppunit/Exception.h> #include <cppunit/Portability.h> 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 <ctime> - -using namespace ledger; CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(DateTimeTestCase, "numerics"); |