summaryrefslogtreecommitdiff
path: root/test/unit/t_commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 13:58:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 13:58:30 -0400
commitf7f07310f4c6b717dcc276b4a14b3fbfbaebdf27 (patch)
tree0ea2f16087e232d69052b53a0a176d3818af3fe8 /test/unit/t_commodity.cc
parent5e6c95e348bc85525c841a56d7467d39d8ee2ace (diff)
downloadfork-ledger-f7f07310f4c6b717dcc276b4a14b3fbfbaebdf27.tar.gz
fork-ledger-f7f07310f4c6b717dcc276b4a14b3fbfbaebdf27.tar.bz2
fork-ledger-f7f07310f4c6b717dcc276b4a14b3fbfbaebdf27.zip
Be smarter about trimming off trailing zeroes
Diffstat (limited to 'test/unit/t_commodity.cc')
-rw-r--r--test/unit/t_commodity.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/t_commodity.cc b/test/unit/t_commodity.cc
index ad5e91b4..c546c750 100644
--- a/test/unit/t_commodity.cc
+++ b/test/unit/t_commodity.cc
@@ -78,7 +78,7 @@ void CommodityTestCase::testPriceHistory()
#ifdef INTEGER_MATH
assertEqual(string("$2124.12"), amt->to_fullstring());
#else
- assertEqual(string("$2124.1220"), amt->to_fullstring());
+ assertEqual(string("$2124.122"), amt->to_fullstring());
#endif
amt = x1.value(false, CURRENT_TIME(), euro);