summaryrefslogtreecommitdiff
path: root/tests/numerics/BasicAmount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-02 03:05:35 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:36 -0400
commitfd1d109b29ce4a87acb33c0c01d6984f569e46b9 (patch)
tree9c6416a0f01b7287224241050801f9fc9ee96764 /tests/numerics/BasicAmount.h
parentde64861182dfc9b3deaaf95846997986bca41cd9 (diff)
downloadfork-ledger-fd1d109b29ce4a87acb33c0c01d6984f569e46b9.tar.gz
fork-ledger-fd1d109b29ce4a87acb33c0c01d6984f569e46b9.tar.bz2
fork-ledger-fd1d109b29ce4a87acb33c0c01d6984f569e46b9.zip
More organization of amount code.
Diffstat (limited to 'tests/numerics/BasicAmount.h')
-rw-r--r--tests/numerics/BasicAmount.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/numerics/BasicAmount.h b/tests/numerics/BasicAmount.h
index a6c8aff7..12449e49 100644
--- a/tests/numerics/BasicAmount.h
+++ b/tests/numerics/BasicAmount.h
@@ -8,9 +8,9 @@ class BasicAmountTestCase : public CPPUNIT_NS::TestCase
CPPUNIT_TEST_SUITE(BasicAmountTestCase);
CPPUNIT_TEST(testConstructors);
- CPPUNIT_TEST(testNegation);
CPPUNIT_TEST(testAssignment);
CPPUNIT_TEST(testEquality);
+ CPPUNIT_TEST(testComparisons);
CPPUNIT_TEST(testIntegerAddition);
CPPUNIT_TEST(testFractionalAddition);
CPPUNIT_TEST(testIntegerSubtraction);
@@ -19,15 +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(testNegation);
+ CPPUNIT_TEST(testAbs);
CPPUNIT_TEST(testFractionalRound);
+ CPPUNIT_TEST(testReduction);
+ CPPUNIT_TEST(testSign);
CPPUNIT_TEST(testTruth);
CPPUNIT_TEST(testForZero);
- CPPUNIT_TEST(testComparisons);
- CPPUNIT_TEST(testSign);
- CPPUNIT_TEST(testAbs);
- CPPUNIT_TEST(testReduction);
+ CPPUNIT_TEST(testIntegerConversion);
+ CPPUNIT_TEST(testFractionalConversion);
CPPUNIT_TEST(testPrinting);
CPPUNIT_TEST_SUITE_END();
@@ -40,9 +40,9 @@ public:
virtual void tearDown();
void testConstructors();
- void testNegation();
void testAssignment();
void testEquality();
+ void testComparisons();
void testIntegerAddition();
void testFractionalAddition();
void testIntegerSubtraction();
@@ -51,15 +51,15 @@ public:
void testFractionalMultiplication();
void testIntegerDivision();
void testFractionalDivision();
- void testIntegerConversion();
- void testFractionalConversion();
+ void testNegation();
+ void testAbs();
void testFractionalRound();
+ void testReduction();
+ void testSign();
void testTruth();
void testForZero();
- void testComparisons();
- void testSign();
- void testAbs();
- void testReduction();
+ void testIntegerConversion();
+ void testFractionalConversion();
void testPrinting();
private: