;Add shelltests demonstrating bug reported in issue 457

This commit is contained in:
Jacek Generowicz 2019-11-30 14:32:24 +01:00
parent 9d6db33278
commit 7394441728

View File

@ -23,3 +23,26 @@
# PATH= ~/.local/bin/stack exec -- hledger
#>>>=0
############################ issue 457 #####################################
# 5. test for `>` in https://github.com/simonmichael/hledger/issues/457 #
# note a shelltest already provides one level of quoting, so amt:>0 not 'amt:>0' #
# #
$ hledger -f - ui amt:>0 #
>2 !/could not parse/ #
>=1 #
#
# 6. test for `<` in https://github.com/simonmichael/hledger/issues/457 #
$ hledger -f - ui amt:<0 #
>2 !/could not parse/ #
>=1 #
#
# 7. test for `>=` in https://github.com/simonmichael/hledger/issues/457 #
$ hledger -f - ui amt:>=0 #
>2 !/could not parse/ #
>=1 #
#
# 8. test for `<=` in https://github.com/simonmichael/hledger/issues/457 #
$ hledger -f - ui amt:<=0 #
>2 !/could not parse/ #
>=1 #
##################################################################################