fix add doctests
This commit is contained in:
parent
ace0d7fe79
commit
90cf39cc09
@ -103,17 +103,17 @@ registerFromString s = do
|
|||||||
{- doctests
|
{- doctests
|
||||||
|
|
||||||
@
|
@
|
||||||
$ echo "2009/13/1"|hledger -f /dev/null add 2>&1|tail -2|head -1|sed -e's/\[[^]]*\]//g' # a bad date is not accepted
|
$ echo "2009/13/1"|hledger -f /dev/null add 2>&1|tail -1|sed -e's/\[[^]]*\]//g' # a bad date is not accepted
|
||||||
date : date :
|
date : date :
|
||||||
@
|
@
|
||||||
|
|
||||||
@
|
@
|
||||||
$ echo|hledger -f /dev/null add 2>&1|tail -2|head -1|sed -e's/\[[^]]*\]//g' # a blank date is ok
|
$ echo|hledger -f /dev/null add 2>&1|tail -1|sed -e's/\[[^]]*\]//g' # a blank date is ok
|
||||||
date : description:
|
date : description:
|
||||||
@
|
@
|
||||||
|
|
||||||
@
|
@
|
||||||
$ (echo;echo)|hledger -f /dev/null add 2>&1|tail -2|head -1|sed -e's/\[[^]]*\]//g' # a blank description should fail
|
$ printf "\n\n"|hledger -f /dev/null add 2>&1|tail -1|sed -e's/\[[^]]*\]//g' # a blank description should fail
|
||||||
date : description: description:
|
date : description: description:
|
||||||
@
|
@
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user