diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-12 01:37:50 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-05-08 02:50:18 -0400 |
commit | 289cc97d45bbd3a8cdfcc3371ade71715b75b000 (patch) | |
tree | 2b1ab8575232260c4eb779282e03f64783ccb756 /test/numerics/t_commodity.h | |
parent | 627769ccc88ae15c92c5c2e5896bb1d96f52e385 (diff) | |
download | fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.tar.gz fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.tar.bz2 fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.zip |
Exchanged old test files for the new testing code in was-v3.0.
Diffstat (limited to 'test/numerics/t_commodity.h')
-rw-r--r-- | test/numerics/t_commodity.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/numerics/t_commodity.h b/test/numerics/t_commodity.h new file mode 100644 index 00000000..ed739751 --- /dev/null +++ b/test/numerics/t_commodity.h @@ -0,0 +1,36 @@ +#ifndef _T_COMMMODITY_H +#define _T_COMMMODITY_H + +#include "UnitTests.h" + +class CommodityTestCase : public CPPUNIT_NS::TestCase +{ + CPPUNIT_TEST_SUITE(CommodityTestCase); + + CPPUNIT_TEST(testPriceHistory); + CPPUNIT_TEST(testLots); + CPPUNIT_TEST(testScalingBase); + CPPUNIT_TEST(testReduction); + + CPPUNIT_TEST_SUITE_END(); + +public: + ledger::session_t session; + + CommodityTestCase() {} + virtual ~CommodityTestCase() {} + + virtual void setUp(); + virtual void tearDown(); + + void testPriceHistory(); + void testLots(); + void testScalingBase(); + void testReduction(); + +private: + CommodityTestCase(const CommodityTestCase ©); + void operator=(const CommodityTestCase ©); +}; + +#endif // _T_COMMMODITY_H |