functional test de-hard-codifications

This commit is contained in:
Simon Michael 2012-04-13 21:48:29 +00:00
parent 021d61b285
commit d4a1e51f2c
4 changed files with 7 additions and 7 deletions

View File

@ -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
<<< <<<

View File

@ -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