;csv: another commented test for auto-generation of balancing posting

and remove some junk.

[ci skip]
This commit is contained in:
Simon Michael 2019-11-23 12:54:34 -08:00
parent 0beca72275
commit 8b4ae4cd43

View File

@ -541,9 +541,7 @@ $ ./hledger-csv
# #
#>=0 #>=0
# #
## 26. A single zero posting also should not generate a balancing posting. ## 26. A single posting that's zero also should not generate a balancing posting.
## (Really what we'd like is "if the single posting does not require balancing,
## no extra posting is generated").
#< #<
#2019-01-01,0 #2019-01-01,0
# #
@ -557,33 +555,20 @@ $ ./hledger-csv
# #
#>=0 #>=0
## 27. With a bracketed account name, the auto-generated second posting should also be bracketed.
# fields date,amount #<
# account2 (a) #2019-01-01,1
# $ hledger -f a.csv print #
# hledger: "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/a.csv" (line 2, column 1) #RULES
# could not balance this transaction (real postings are off by 1) #fields date,amount
# 2019/01/01 #account1 [a]
# expenses:unknown 1 #
# (a) -1 #$ ./hledger-csv
#2019/01/01
# fields date, # [a] 1
# account1 (a) # [income:unknown] -1
# amount 0 #
# $ hledger -f a.csv print #>=0
# 2019/01/01
# (a)
# fields date,
# account1 a
# amount 0
# $ hledger -f a.csv print
# hledger: "/Users/simon/src/PLAINTEXTACCOUNTING/hledger/a.csv" (line 2, column 1)
# could not balance this transaction - can't have more than one real posting with no amount (remember to put 2 or more spaces before amounts)
# 2019/01/01
# a
# expenses:unknown