mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
test: example on which recursive interpolation in CSV parser fails
This commit is contained in:
parent
e4476dd2f1
commit
09f8d62458
@ -153,7 +153,7 @@ $ printf 'fields date, description, amount\ndate-format %%d/%%Y/%%m\ncurrency $
|
||||
>=0
|
||||
|
||||
# 15. recursive interpolation
|
||||
$ printf 'fields account1, date, description, amount\ndate-format %%d/%%Y/%%m\ncurrency $\nif Flubber\n account1 assets:%%account1\n amount (%%amount)' >t.$$.csv.rules; printf 'myacct,10/2009/09,Flubber Co,50\n' | hledger -f csv:- --rules-file t.$$.csv.rules print && rm -rf t.$$.csv.rules
|
||||
$ printf 'fields account1, date, description, amount-in, amount-out\ndate-format %%d/%%Y/%%m\ncurrency $\nif Flubber\n account1 assets:%%account1\n amount-in (%%amount-in)' >t.$$.csv.rules; printf 'myacct,10/2009/09,Flubber Co,50,\n' | hledger -f csv:- --rules-file t.$$.csv.rules print && rm -rf t.$$.csv.rules
|
||||
2009/09/10 Flubber Co
|
||||
assets:myacct $-50
|
||||
income:unknown
|
||||
|
Loading…
Reference in New Issue
Block a user