From e7f9486f6e524947a29b8e7d20bc834a240a3b23 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 16 Apr 2007 04:27:26 +0000 Subject: Finished uncommoditized amount unit tests. --- tests/corelib/numerics/BasicAmount.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/corelib/numerics/BasicAmount.h') diff --git a/tests/corelib/numerics/BasicAmount.h b/tests/corelib/numerics/BasicAmount.h index 6e2f021e..cff3bed8 100644 --- a/tests/corelib/numerics/BasicAmount.h +++ b/tests/corelib/numerics/BasicAmount.h @@ -19,6 +19,15 @@ class BasicAmountTestCase : public CPPUNIT_NS::TestCase CPPUNIT_TEST(testFractionalMultiplication); CPPUNIT_TEST(testIntegerDivision); CPPUNIT_TEST(testFractionalDivision); + CPPUNIT_TEST(testIntegerConversion); + CPPUNIT_TEST(testFractionalConversion); + CPPUNIT_TEST(testFractionalRound); + CPPUNIT_TEST(testTruth); + CPPUNIT_TEST(testForZero); + CPPUNIT_TEST(testComparisons); + CPPUNIT_TEST(testSign); + CPPUNIT_TEST(testAbs); + CPPUNIT_TEST(testPrinting); CPPUNIT_TEST_SUITE_END(); @@ -41,6 +50,15 @@ public: void testFractionalMultiplication(); void testIntegerDivision(); void testFractionalDivision(); + void testIntegerConversion(); + void testFractionalConversion(); + void testFractionalRound(); + void testTruth(); + void testForZero(); + void testComparisons(); + void testSign(); + void testAbs(); + void testPrinting(); private: BasicAmountTestCase(const BasicAmountTestCase ©); -- cgit v1.2.3