hledger/tests
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
..
add tests: make functional tests use "hledger" again 2015-07-12 12:29:53 -07:00
addons update addons tests, note a todo 2017-03-29 08:21:30 -07:00
balance cli: disable failing test (#727) 2018-04-08 18:38:54 -07:00
balancesheet cli: tabular reports no longer have a trailing blank line added 2018-01-23 12:47:56 -08:00
budget journal: infer and balance amounts with standard amount styles (fix #737) 2018-04-20 13:40:05 -07:00
cashflow update functional tests for new monthly headings 2018-03-29 14:54:36 +01:00
cli cli: tabular reports no longer have a trailing blank line added 2018-01-23 12:47:56 -08:00
csv csv: switch the order of generated postings, so account1 is first 2017-08-15 08:16:49 -07:00
i18n cli: tabular reports no longer have a trailing blank line added 2018-01-23 12:47:56 -08:00
incomestatement update functional tests for new monthly headings 2018-03-29 14:54:36 +01:00
journal journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
misc lib, app, web: remove differences between command line and journal file aliases 2018-04-17 16:09:11 -07:00
print lib: keep amounts aligned when rendering a transaction with posting flags 2017-06-04 21:26:18 -07:00
register convert register tests to new format, test stderr, reveal travis issue 2018-02-16 01:22:08 -08:00
stats lib: simplify parsers; cleanups (#275) 2016-05-23 00:44:19 -07:00
timeclock lib: keep amounts aligned when rendering a transaction with posting flags 2017-06-04 21:26:18 -07:00