diff options
-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); |