# 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

# With --date2, it checks secondary dates instead
<
2020-01-02
2020-01-01=2020-01-03
$ hledger -f- check ordereddates --date2

# 
<
2020-01-01=2020-01-03
2020-01-02
$ hledger -f- check ordereddates --date2
>2 /transaction date2 is out of order/
>=1

# XXX not supported: With a query, only matched transactions' dates are checked.
# <
# 2020-01-01 a
# 2020-01-03 b
# 2020-01-02 a
# $ hledger -f- check ordereddates

# XXX not supported: With --unique, dates must also be unique.
# <
# 2020-01-01
# 2020-01-01
# $ hledger -f- check ordereddates --unique
# >2 /transaction date is out of order and/or not unique/
# >=1
