hledger/hledger/test/check-commodities.test
2020-12-31 10:27:50 -08:00

15 lines
245 B
Plaintext

# check commodities succeeds when all commodities are declared
<
commodity $1.
2020-01-01
(a) $1
$ hledger -f- check commodities
# and otherwise fails
<
2020-01-01
(a) $1
$ hledger -f- check commodities
>2 /undeclared commodity "\$"/
>=1