ledger/test/numerics/t_commodity.h
John Wiegley 9e9f25b566 'make check' is now working again. Also, conversion from amount_t to/from
double has been disabled, because I am no longer packaging the gdtoa library
with Ledger (because double conversion really has nothing to do with what
Ledger does).  If you wish to use it, you can find gdtoa in cpp-rewrite-2006,
under a sub-directory of the same name.
2008-07-27 01:03:41 -04:00

36 lines
712 B
C++

#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 &copy);
void operator=(const CommodityTestCase &copy);
};
#endif // _T_COMMMODITY_H