lib: test descriptions

This commit is contained in:
Simon Michael 2018-06-11 15:30:12 -07:00
parent 0edcd2f64e
commit 34b4553344

View File

@ -1,4 +1,4 @@
# Test --forecast switch # 1. A balance report with forecasted transactions.
hledger bal -M -b 2016-11 -e 2017-02 -f - --forecast hledger bal -M -b 2016-11 -e 2017-02 -f - --forecast
<<< <<<
2016/12/31 2016/12/31
@ -28,6 +28,7 @@ Balance changes in 2016/12/01-2017/01/31:
>>>=0 >>>=0
# 2. print forecasted transactions, with status and description.
hledger print -b 2016-11 -e 2017-02 -f - --forecast hledger print -b 2016-11 -e 2017-02 -f - --forecast
<<< <<<
2016/12/31 2016/12/31
@ -57,6 +58,7 @@ hledger print -b 2016-11 -e 2017-02 -f - --forecast
>>>=0 >>>=0
# 3. A register with forecasted transactions, with a comment and tag.
hledger register -b 2016-11 -e 2017-02 -f - --forecast tag:a hledger register -b 2016-11 -e 2017-02 -f - --forecast tag:a
<<< <<<
2016/12/31 2016/12/31
@ -78,7 +80,7 @@ hledger register -b 2016-11 -e 2017-02 -f - --forecast tag:a
>>>2 >>>2
>>>=0 >>>=0
# Check that --forecast generates transactions only after last transaction in journal # 4. Check that --forecast generates transactions only after last transaction date in journal.
hledger register -b 2015-12 -e 2017-02 -f - assets:cash --forecast hledger register -b 2015-12 -e 2017-02 -f - assets:cash --forecast
<<< <<<
2016/01/01 2016/01/01