test: added test for #570

This commit is contained in:
Dmitry Astapov 2019-10-12 00:06:16 +01:00
parent 0e1ead74c3
commit c5bab0ae40

View File

@ -129,6 +129,20 @@ $ printf 'fields date, description, amount, balance1, balance2, currency3, amou
>=0
# 13. reading CSV with in-field and out-field, where one could be zero
<
10/2009/09,Flubber Co🎅,50,0
11/2009/09,Flubber Co🎅,0.00,50
$ printf 'account1 Assets:MyAccount\ndate %%1\ndate-format %%d/%%Y/%%m\ndescription %%2\namount-in %%3\namount-out %%4\ncurrency $\n' >t.$$.csv.rules ; hledger -f csv:- --rules-file t.$$.csv.rules print && rm -rf t.$$.csv.rules
2009/09/10 Flubber Co🎅
Assets:MyAccount $50
expense:unknown
2009/09/11 Flubber Co🎅
Assets:MyAccount $-50
income:unknown
>=0
# . TODO: without --separator gives obscure error
# |