;check: start some functional tests, for payees
This commit is contained in:
parent
3c232fbd7d
commit
de56d09024
23
hledger/test/check.test
Normal file
23
hledger/test/check.test
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# check command
|
||||||
|
|
||||||
|
# check payees succeeds when all payees are declared:
|
||||||
|
<
|
||||||
|
payee foo
|
||||||
|
2020-01-01 foo
|
||||||
|
2020-01-02 foo | some description
|
||||||
|
$ hledger -f - check payees
|
||||||
|
|
||||||
|
# and otherwise fails, eg:
|
||||||
|
<
|
||||||
|
2020-01-01 foo
|
||||||
|
$ hledger -f - check payees
|
||||||
|
>2 /undeclared payee "foo"/
|
||||||
|
>=1
|
||||||
|
|
||||||
|
# or:
|
||||||
|
<
|
||||||
|
payee foo
|
||||||
|
2020-01-01 the payee | foo
|
||||||
|
$ hledger -f - check payees
|
||||||
|
>2 /undeclared payee "the payee"/
|
||||||
|
>=1
|
||||||
Loading…
Reference in New Issue
Block a user