From 5ceb278296e671e136a0ee1d110eb1bc2dc71dd5 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 9 Jul 2019 11:31:56 +0100 Subject: [PATCH] ;journal: tests: note surprising decimal mark parsing [ci skip] --- tests/journal/amounts-and-commodities.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/journal/amounts-and-commodities.test b/tests/journal/amounts-and-commodities.test index 3f5c04c3b..bb8dce941 100644 --- a/tests/journal/amounts-and-commodities.test +++ b/tests/journal/amounts-and-commodities.test @@ -150,3 +150,16 @@ $ hledger -f- print $ hledger -f- print > // # any stdout, no stderr, 0 exit code + +# 13. Example of surprising decimal mark parsing behaviour. +# Without a commodity declaration, these amounts are parsed as 10 and 10000. +# < +# 2000/1/1 +# a $-10,000 +# b $10,000.00 +# +# $ hledger -f- print +# could not balance this transaction (real postings are off by $9,990,000) +# 2000/01/01 +# a $-10,000 +# b $10,000,000 \ No newline at end of file