hledger/hledger/test/check-ordereddates.test

21 lines
439 B
Plaintext

# check ordereddates succeeds when transaction dates are ordered
<
2020-01-01
2020-01-01
2020-01-02
$ hledger -f- check ordereddates
# and otherwise fails
<
2020-01-01
2020-01-02
2020-01-01
(a) 1
$ hledger -f- check ordereddates
>2 /transaction date is out of order/
>=1
# XXX
# With --date2, it checks secondary dates instead.
# With --strict, dates must also be unique.
# With a query, only matched transactions' dates are checked.