hledger/hledger/test/print/date2.test
Simon Michael e9cd1df048 dev: tests: convert remaining format 1 tests to format 3 (or 2)
Mostly done with an unreleased version of shelltestrunner, plus a few manual fixups.
2023-02-16 11:55:15 -10:00

34 lines
498 B
Plaintext

# 1. print shows both primary and secondary dates. The second's year defaults to the first's.
<
2000/1/1=3/3
(a) 1
2000/1/2=2/2
(b) 1
$ hledger -f - print
2000-01-01=2000-03-03
(a) 1
2000-01-02=2000-02-02
(b) 1
>= 0
# 2. With --date2, the secondary date is used for sorting.
<
2000/1/1=3/3
(a) 1
2000/1/2=2/2
(b) 1
$ hledger -f - print --date2
2000-01-02=2000-02-02
(b) 1
2000-01-01=2000-03-03
(a) 1
>= 0