From 5bd407b3b98cf22106ab68e1be35757d62127cca Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Sat, 12 Oct 2019 22:47:54 +0100 Subject: [PATCH] test: show that #1000 is fixed --- tests/csv.test | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/csv.test b/tests/csv.test index ef17342ba..a85506a61 100644 --- a/tests/csv.test +++ b/tests/csv.test @@ -379,6 +379,34 @@ $ ./hledger-csv >=0 +# 19. Lines with just balance, no amount (#1000) +< +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 +$ ./hledger-csv +2018/10/15 Assets Update + assets = EUR 100 + income + +2018/10/16 Assets Update + assets = EUR 200 + income + +2018/10/17 Assets Update + assets = EUR 300 + income + +>=0 + # . TODO: without --separator gives obscure error # | # 1 | 10/2009/09;Flubber Co🎅;50;