diff --git a/tests/csv.test b/tests/csv.test index a85506a61..a84f3a38f 100644 --- a/tests/csv.test +++ b/tests/csv.test @@ -367,7 +367,7 @@ if HEADER MIDDLE END OF FILE skip - + $ ./hledger-csv 2009/09/10 Flubber Co assets:myacct $50 @@ -407,6 +407,39 @@ $ ./hledger-csv >=0 +# 20. Test for #1001 - empty assignment to amount show not eat next line +< +2018-10-15,100 +2018-10-16,200 +2018-10-17,300 +RULES +fields date,bal + +balance EUR %bal +date-format %Y-%m-%d +description Assets Update +account1 assets +account2 income +if 2018 + amount + comment Dont eat me + balance + comment Dont eat me +$ ./hledger-csv +2018/10/15 Assets Update ; Dont eat me + assets + income + +2018/10/16 Assets Update ; Dont eat me + assets + income + +2018/10/17 Assets Update ; Dont eat me + assets + income + +>=0 + # . TODO: without --separator gives obscure error # | # 1 | 10/2009/09;Flubber Co🎅;50;