hledger/tests
Simon Michael 3de8c11de1 journal: a new account sorting mechanism, and a bunch of sorting fixes
A bunch of account sorting changes that got intermingled.

First, account codes have been dropped. They can still be parsed and
will be ignored, for now. I don't know if anyone used them.
Instead, account display order is now controlled by the order of account
directives, if any. From the mail list:

  I'd like to drop account codes, introduced in hledger 1.9 to control
  the display order of accounts. In my experience,

  - they are tedious to maintain
  - they duplicate/compete with the natural tendency to arrange account
    directives to match your mental chart of accounts
  - they duplicate/compete with the tree structure created by account
    names

  and it gets worse if you think about using them more extensively,
  eg to classify accounts by type.

  Instead, I plan to just let the position (parse order) of account
  directives determine the display order of those declared accounts.
  Undeclared accounts will be displayed after declared accounts,
  sorted alphabetically as usual.

Second, the various account sorting modes have been implemented more
widely and more correctly. All sorting modes (alphabetically, by account
declaration, by amount) should now work correctly in almost all commands
and modes (non-tabular and tabular balance reports, tree and flat modes,
the accounts command). Sorting bugs have been fixed, eg #875.
Only the budget report (balance --budget) does not yet support sorting.

Comprehensive functional tests for sorting in the accounts and balance
commands have been added. If you are confused by some sorting behaviour,
studying these tests is recommended, as sorting gets tricky.
2018-09-22 21:45:07 -10:00
..
0unittests tests: simplify unittests func. test 2018-08-16 06:05:07 +01:00
accounts journal: a new account sorting mechanism, and a bunch of sorting fixes 2018-09-22 21:45:07 -10: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 journal: a new account sorting mechanism, and a bunch of sorting fixes 2018-09-22 21:45:07 -10:00
balancesheet cli: tabular reports no longer have a trailing blank line added 2018-01-23 12:47:56 -08:00
budget lib: --forecast func tests note 2018-08-17 09:37:55 +01:00
cashflow update functional tests for new monthly headings 2018-03-29 14:54:36 +01:00
cli Add a test 2018-07-04 17:54:15 +03:00
csv csv: some follow-on issues related to #829 2018-09-07 13:43:05 -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 lib: D should not affect automated posting multiplier amounts (fix #860) 2018-08-17 07:39:17 +01:00
misc lib,rewrite: simplify transactionModifierToFunction 2018-08-02 08:25:49 +01: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