diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-31 01:22:51 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-31 01:22:51 -0400 |
commit | e4c7df4002c896ef9e33bd7bf38f7b6c88e5483e (patch) | |
tree | b01b89bdc24d20ce8e1cf6aedb37e6ad4376f1d6 /test/unit | |
parent | b42ef31d931a16451c15f934be2b7aa6498a1e3e (diff) | |
download | fork-ledger-e4c7df4002c896ef9e33bd7bf38f7b6c88e5483e.tar.gz fork-ledger-e4c7df4002c896ef9e33bd7bf38f7b6c88e5483e.tar.bz2 fork-ledger-e4c7df4002c896ef9e33bd7bf38f7b6c88e5483e.zip |
Don't perform rounding tests in Python.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/t_amount.cc | 6 | ||||
-rw-r--r-- | test/unit/t_amount.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/t_amount.cc b/test/unit/t_amount.cc index 6dc1a5b6..484a51bc 100644 --- a/test/unit/t_amount.cc +++ b/test/unit/t_amount.cc @@ -1091,6 +1091,9 @@ void AmountTestCase::testCommodityAbs() assertValid(x2); } +#ifndef NOT_FOR_PYTHON +#ifdef INTEGER_MATH + void AmountTestCase::testFractionalRound() { amount_t x0; @@ -1256,6 +1259,9 @@ void AmountTestCase::testCommodityDisplayRound() assertEqual(string("$1.13"), x1.to_string()); } +#endif // INTEGER_MATH +#endif + void AmountTestCase::testReduction() { amount_t x0; diff --git a/test/unit/t_amount.h b/test/unit/t_amount.h index 21224a09..92bbe9b8 100644 --- a/test/unit/t_amount.h +++ b/test/unit/t_amount.h @@ -32,9 +32,11 @@ class AmountTestCase : public CPPUNIT_NS::TestCase CPPUNIT_TEST(testCommodityNegation); CPPUNIT_TEST(testAbs); CPPUNIT_TEST(testCommodityAbs); +#ifdef INTEGER_MATH CPPUNIT_TEST(testFractionalRound); CPPUNIT_TEST(testCommodityRound); CPPUNIT_TEST(testCommodityDisplayRound); +#endif CPPUNIT_TEST(testReduction); CPPUNIT_TEST(testSign); CPPUNIT_TEST(testCommoditySign); |