diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-16 04:27:26 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:35 -0400 |
commit | e7f9486f6e524947a29b8e7d20bc834a240a3b23 (patch) | |
tree | 9720b3b7750bffc3cab66a707cac8719371ad857 /tests/corelib/numerics/BasicAmount.h | |
parent | 8a63ad1c8d0f03b9be57331f911c0ccd998ece68 (diff) | |
download | fork-ledger-e7f9486f6e524947a29b8e7d20bc834a240a3b23.tar.gz fork-ledger-e7f9486f6e524947a29b8e7d20bc834a240a3b23.tar.bz2 fork-ledger-e7f9486f6e524947a29b8e7d20bc834a240a3b23.zip |
Finished uncommoditized amount unit tests.
Diffstat (limited to 'tests/corelib/numerics/BasicAmount.h')
-rw-r--r-- | tests/corelib/numerics/BasicAmount.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 ©); |