;balcmds: clarify tests a little for #1566
This commit is contained in:
parent
3f6d7ba580
commit
9d2d8ac24f
@ -143,7 +143,7 @@ hledger -f - balance -b 2016/10 -e 2016/11
|
|||||||
>>>2
|
>>>2
|
||||||
>>>= 0
|
>>>= 0
|
||||||
|
|
||||||
# 7. Test csv output
|
# 7. Default CSV output.
|
||||||
hledger -f - balance -N --output-format=csv
|
hledger -f - balance -N --output-format=csv
|
||||||
<<<
|
<<<
|
||||||
2021-01-01 Test
|
2021-01-01 Test
|
||||||
@ -154,3 +154,17 @@ hledger -f - balance -N --output-format=csv
|
|||||||
"Assets:ABC","""AB.C"" 1"
|
"Assets:ABC","""AB.C"" 1"
|
||||||
"Assets:Cash","$-1"
|
"Assets:Cash","$-1"
|
||||||
>>>= 0
|
>>>= 0
|
||||||
|
|
||||||
|
# 8. CSV output always shows full account names, even in tree mode (#1565).
|
||||||
|
hledger -f - balance -N --output-format=csv --tree
|
||||||
|
<<<
|
||||||
|
2021-01-01 Test
|
||||||
|
Assets:ABC "AB.C" 1
|
||||||
|
Assets:Cash -$1
|
||||||
|
>>>
|
||||||
|
"account","balance"
|
||||||
|
"Assets","$-1, ""AB.C"" 1"
|
||||||
|
"Assets:ABC","""AB.C"" 1"
|
||||||
|
"Assets:Cash","$-1"
|
||||||
|
>>>= 0
|
||||||
|
|
||||||
|
|||||||
@ -306,7 +306,7 @@ Balance Sheet 2020-03-25
|
|||||||
=============++============
|
=============++============
|
||||||
Net: || $1
|
Net: || $1
|
||||||
|
|
||||||
# 12. Check csv output (for tree mode) (#1566)
|
# 12. CSV output. It always shows full account names, even in tree mode (#1566).
|
||||||
$ hledger -f - balancesheet --tree --output-format=csv
|
$ hledger -f - balancesheet --tree --output-format=csv
|
||||||
"Balance Sheet 2020-03-25",""
|
"Balance Sheet 2020-03-25",""
|
||||||
"Account","2020-03-25"
|
"Account","2020-03-25"
|
||||||
@ -317,7 +317,7 @@ $ hledger -f - balancesheet --tree --output-format=csv
|
|||||||
"total"
|
"total"
|
||||||
"Net:","$1"
|
"Net:","$1"
|
||||||
|
|
||||||
# 13. Check csv output (for tree mode) with dropping
|
# 13. CSV output supports --drop.
|
||||||
$ hledger -f - balancesheet --tree --output-format=csv --drop 1
|
$ hledger -f - balancesheet --tree --output-format=csv --drop 1
|
||||||
"Balance Sheet 2020-03-25",""
|
"Balance Sheet 2020-03-25",""
|
||||||
"Account","2020-03-25"
|
"Account","2020-03-25"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user