codes: functional tests

This commit is contained in:
Simon Michael 2020-07-07 14:00:02 -07:00
parent 644be1e1cf
commit 7833586d14

37
tests/codes.test Normal file
View File

@ -0,0 +1,37 @@
# codes command
<
1/1 (123)
(a) 1
1/1 ()
(a) 1
1/1
(a) 1
1/1 (124)
(a) 1
1/1 (123)
(a) 1
1/1
(a) 1
# 1. Show non-empty codes by default, in parse order, including duplicates.
$ hledger -f - codes
123
124
123
>=
# 2. With -E, also show empty/missing codes as blank lines.
$ hledger -f - codes -E
123
124
123
>=