diff --git a/tests/csv.test b/tests/csv.test index c67c6f00a..ef17342ba 100644 --- a/tests/csv.test +++ b/tests/csv.test @@ -336,7 +336,7 @@ $ ./hledger-csv >=0 -# 18. Show that #415 is fixed +# 17. Show that #415 is fixed < "2016/01/01","$1" "2016/02/02","$1,000.00" @@ -350,6 +350,35 @@ $ ./hledger-csv | hledger balance -f - --no-total $1,001.00 unknown >=0 +# 18. Conditional skips +< +HEADER +10/2009/09,Flubber Co,50 +MIDDLE +10/2009/09,Flubber Co,50 +*** END OF FILE *** +RULES +fields date, description, amount +date-format %d/%Y/%m +currency $ +account1 assets:myacct + +if HEADER +MIDDLE +END OF FILE + skip + +$ ./hledger-csv +2009/09/10 Flubber Co + assets:myacct $50 + income:unknown + +2009/09/10 Flubber Co + assets:myacct $50 + income:unknown + +>=0 + # . TODO: without --separator gives obscure error # | # 1 | 10/2009/09;Flubber Co🎅;50;