functional test de-hard-codifications
This commit is contained in:
parent
021d61b285
commit
d4a1e51f2c
@ -2,14 +2,14 @@
|
|||||||
# data validation
|
# data validation
|
||||||
#
|
#
|
||||||
# 1. should prompt again for a bad date
|
# 1. should prompt again for a bad date
|
||||||
rm -f t$$.j; bin/hledger -f t$$.j add; rm -f t$$.j
|
bin/hledger -f $$-add.j add; rm -f $$-add.j
|
||||||
<<<
|
<<<
|
||||||
2009/1/32
|
2009/1/32
|
||||||
>>> /date, or \. to end.*: date, or \. to end.*/
|
>>> /date, or \. to end.*: date, or \. to end.*/
|
||||||
>>>=0
|
>>>=0
|
||||||
|
|
||||||
# 2. should accept a blank date
|
# 2. should accept a blank date
|
||||||
rm -f t$$.j; bin/hledger -f t$$.j add; rm -f t$$.j
|
bin/hledger -f $$-add.j add; rm -f $$-add.j
|
||||||
<<<
|
<<<
|
||||||
|
|
||||||
>>> /date,.*: description/
|
>>> /date,.*: description/
|
||||||
@ -19,7 +19,7 @@
|
|||||||
# precision and commodity handling
|
# precision and commodity handling
|
||||||
#
|
#
|
||||||
# 3. simple add with no existing journal, no commodity entered
|
# 3. simple add with no existing journal, no commodity entered
|
||||||
rm -f t$$.j; bin/hledger -f t$$.j add; rm -f t$$.j
|
bin/hledger -f $$-add.j add; rm -f $$-add.j
|
||||||
<<<
|
<<<
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
# commands should generally autocreate an empty journal when missing, see also add*.test
|
# commands should generally autocreate an empty journal when missing, see also add*.test
|
||||||
# $$ used for safe concurrent test running, may be a bash-ism
|
# $$ used for safe concurrent test running, may be a bash-ism
|
||||||
|
|
||||||
rm -f $$; bin/hledger register -f $$; rm -f $$
|
bin/hledger register -f no-such-file-$$; rm -f no-such-file-$$
|
||||||
>>>
|
>>>
|
||||||
>>>2 /journal file.*not found/
|
>>>2 /journal file.*not found/
|
||||||
>>>=0
|
>>>=0
|
||||||
|
|
||||||
rm -f $$; bin/hledger balance --no-total -f $$; rm -f $$
|
bin/hledger balance --no-total -f no-such-file-$$; rm -f no-such-file-$$
|
||||||
>>>
|
>>>
|
||||||
>>>2 /journal file.*not found/
|
>>>2 /journal file.*not found/
|
||||||
>>>=0
|
>>>=0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user