mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
test: added test for #570
This commit is contained in:
parent
0e1ead74c3
commit
c5bab0ae40
@ -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
|
||||
# |
|
||||
|
Loading…
Reference in New Issue
Block a user