test: split/rename directive tests

This commit is contained in:
Simon Michael 2021-09-07 09:51:49 -10:00
parent 344c421a3b
commit cea8bc0558
4 changed files with 15 additions and 13 deletions

View File

@ -0,0 +1,13 @@
# commodity directive
<
commodity BTC
$ hledger -f - reg
# commodity directive with subdirective
<
commodity BTC
note Bitcoin
$ hledger -f - reg
>2 /expecting "format"/
>=1

View File

@ -1,3 +1,5 @@
# Miscellaneous directives not tested elsewhere
# apply account, end apply account directives # apply account, end apply account directives
< <
apply account a apply account a
@ -16,16 +18,3 @@ a:b
aa:b aa:b
c c
# commodity directive
<
commodity BTC
$ hledger -f - reg
# commodity directive with subdirective
<
commodity BTC
note Bitcoin
$ hledger -f - reg
>2 /expecting "format"/
>=1