hledger/tests/journal
Simon Michael 0b380971f7 journal: require a decimal point in commodity/format/D directives
A commodity directive that doesn't specify the decimal point character
increases ambiguity and the chance of misparsing numbers, especially
as it overrides all style information inferred from the journal amounts.
In some cases it caused amounts with a decimal point to be parsed as if
with a digit group separator so 1.234 became 1234.

We could augment it with extra info from the journal amounts, when available,
but it would still be possible to be ambiguous, and that won't be obvious.

A commodity directive is what we recommend to nail down the style.
It seems the simple and really only way to do this reliably is to require
an explicit decimal point character. Most folks probably do this already.

Unfortunately, it makes another potential incompatiblity with ledger and
beancount journals. But the error message will be clear and easy to
work around.
2018-04-20 21:56:06 -07:00
..
a.timeclock
amounts.test
b.timedot
balance-assertions.test
blank-description.test
comments.test journal: clarify that txn/posting comments must start with semicolon 2017-11-01 08:04:25 -07:00
commodities.test
commodity-styles.test
dates.test
default-commodity.test
directives.test journal: limit scope of directives backtracking 2017-11-27 14:32:48 -08:00
include.test
market-prices.test uses today's prices, not those of last txn date, for -V (fix #683,#648) 2017-12-29 21:42:59 -08:00
numbers.test journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
parens-in-account-name.test
parse-sample-journal.test
posting-dates.test
precision.test journal: infer and balance amounts with standard amount styles (fix #737) 2018-04-20 13:40:05 -07:00
scientific.test scientific notation test notes (#704, #706) 2018-03-31 02:42:37 +01:00
status.journal
status.test
tags.test
transaction-prices.test
unbalanced.test
virtual-postings.test