Tests to show bug in multiple file assigments in CSV parsing

This commit is contained in:
Dmitry Astapov 2013-06-19 08:29:45 +01:00
parent ef9d1991cf
commit 550f41ee48

View File

@ -35,3 +35,12 @@
# >>>2 /using conversion rules file.*t.rules/
# >>>=0
# 4. handle conditions assigning multiple fields
rm -rf t.rules$$; printf 'fields date, description, amount\ndate-format %%d/%%Y/%%m\ncurrency $\naccount1 assets:myacct\nif Flubber\n account2 acct\n comment cmt' >t.rules$$; echo '10/2009/09,Flubber Co,50' | hledgerdev -f- print --rules-file t.rules$$; rm -rf t.rules$$
>>>
2009/09/10 Flubber Co ;cmt
acct $-50
assets:myacct $50
>>>2 /using conversion rules file.*t.rules/
>>>=0