diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-07 10:43:15 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:40 -0400 |
commit | 39b0a03f8281c2ee7af57326d49dcedd1eb29a47 (patch) | |
tree | ffc7cc9838f784aa22db16b882f81dcf6d01aca4 /tests/numerics/t_commodity.h | |
parent | 6ec2f6b59be2fe8e621e97a39836e7033fd0f240 (diff) | |
download | fork-ledger-39b0a03f8281c2ee7af57326d49dcedd1eb29a47.tar.gz fork-ledger-39b0a03f8281c2ee7af57326d49dcedd1eb29a47.tar.bz2 fork-ledger-39b0a03f8281c2ee7af57326d49dcedd1eb29a47.zip |
Changed the filenames of the tests.
Diffstat (limited to 'tests/numerics/t_commodity.h')
-rw-r--r-- | tests/numerics/t_commodity.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/numerics/t_commodity.h b/tests/numerics/t_commodity.h new file mode 100644 index 00000000..ed739751 --- /dev/null +++ b/tests/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 |