hledger/hledger/test/ledger-compat/baseline/opt-collapse-if-zero.test
Simon Michael 15646ab999 ;dev: convert ledger compat tests to individual shell tests
Also comment ledger's tests more robustly,
and log as an org outline.
2022-12-18 11:50:15 -10:00

16 lines
558 B
Plaintext

2007/02/02 RD VMMXX
Assets:Investments:Vanguard:VMMXX $0.35
Income:Dividends:Vanguard:VMMXX $-0.35
2007/02/02 RD VMMXX
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
Income:Dividends:Vanguard:VMMXX $-0.35
$ hledger -f- check
#test reg --collapse-if-zero
#07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350 VMMXX
# In:Divid:Vanguar:VMMXX $-0.35 $-0.35
# 0.350 VMMXX
#end test
#