Added several more option baseline tests
This commit is contained in:
parent
a0a014b334
commit
310e339464
5 changed files with 65 additions and 0 deletions
11
test/baseline/opt-output.test
Normal file
11
test/baseline/opt-output.test
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
reg --output=/dev/stderr
|
||||
<<<
|
||||
2007/02/02 RD VMMXX
|
||||
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
|
||||
Income:Dividends:Vanguard:VMMXX $-0.35
|
||||
>>>1
|
||||
>>>2
|
||||
07-Feb-02 RD VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
|
||||
In:Di:Vanguard:VMMXX $-0.35 $-0.35
|
||||
0.350 VMMXX
|
||||
=== 0
|
||||
9
test/baseline/opt-pager.test
Normal file
9
test/baseline/opt-pager.test
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
reg --pager=wc
|
||||
<<<
|
||||
2007/02/02 RD VMMXX
|
||||
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
|
||||
Income:Dividends:Vanguard:VMMXX $-0.35
|
||||
>>>1
|
||||
3 13 243
|
||||
>>>2
|
||||
=== 0
|
||||
11
test/baseline/opt-set-account.test
Normal file
11
test/baseline/opt-set-account.test
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
reg --set-account='payee + ":" + commodity'
|
||||
<<<
|
||||
2007/02/02 RD VMMXX
|
||||
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
|
||||
Income:Dividends:Vanguard:VMMXX $-0.35
|
||||
>>>1
|
||||
07-Feb-02 RD VMMXX RD VMMXX:VMMXX 0.350 VMMXX 0.350 VMMXX
|
||||
07-Feb-02 RD VMMXX RD VMMXX:$ $-0.35 $-0.35
|
||||
0.350 VMMXX
|
||||
>>>2
|
||||
=== 0
|
||||
11
test/baseline/opt-set-payee.test
Normal file
11
test/baseline/opt-set-payee.test
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
reg --set-payee='account_base + ":" + commodity'
|
||||
<<<
|
||||
2007/02/02 RD VMMXX
|
||||
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
|
||||
Income:Dividends:Vanguard:VMMXX $-0.35
|
||||
>>>1
|
||||
07-Feb-02 VMMXX:VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
|
||||
07-Feb-02 VMMXX:$ In:Di:Vanguard:VMMXX $-0.35 $-0.35
|
||||
0.350 VMMXX
|
||||
>>>2
|
||||
=== 0
|
||||
23
test/baseline/opt-strict.test
Normal file
23
test/baseline/opt-strict.test
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
reg --strict
|
||||
<<<
|
||||
2007/02/02 * Foo
|
||||
Expenses:Food $10.00
|
||||
Assets:Cash
|
||||
|
||||
2007/02/03 Bar
|
||||
* Expenses:Food $20.00
|
||||
Assets:Cash
|
||||
|
||||
2007/02/02 Baz
|
||||
Expenses:Foodx $30.00
|
||||
Assets:Cash
|
||||
>>>1
|
||||
07-Feb-02 Foo Expenses:Food $10.00 $10.00
|
||||
Assets:Cash $-10.00 0
|
||||
07-Feb-03 Bar Expenses:Food $20.00 $20.00
|
||||
Assets:Cash $-20.00 0
|
||||
07-Feb-02 Baz Expenses:Foodx $30.00 $30.00
|
||||
Assets:Cash $-30.00 0
|
||||
>>>2
|
||||
Warning: "$FILE", line 10: Unknown account 'Expenses:Foodx'
|
||||
=== 0
|
||||
Loading…
Add table
Reference in a new issue