Added baseline tests for unrealized options
This includes another baseline test for --unrealized, and also new ones for --unrealized-gains and --unrealized-losses.
This commit is contained in:
parent
72aa0e0e44
commit
a3338a2a67
3 changed files with 68 additions and 0 deletions
20
test/baseline/opt-unrealized-gains.test
Normal file
20
test/baseline/opt-unrealized-gains.test
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
bal -V --unrealized --unrealized-gains G
|
||||
<<<
|
||||
2008/10/01 Sample
|
||||
Assets:Brokerage 10 AAPL
|
||||
Assets:Checking $-200.00
|
||||
|
||||
P 2008/10/20 12:00:00 AAPL $30.00
|
||||
|
||||
; 2008/10/20 <Generated Transaction>
|
||||
; Assets:Brokerage $100
|
||||
; Equity:Unrealized Gains
|
||||
>>>1
|
||||
$100.00 Assets
|
||||
$300.00 Brokerage
|
||||
$-200.00 Checking
|
||||
$-100.00 G
|
||||
--------------------
|
||||
0
|
||||
>>>2
|
||||
=== 0
|
||||
20
test/baseline/opt-unrealized-losses.test
Normal file
20
test/baseline/opt-unrealized-losses.test
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
bal -V --unrealized --unrealized-losses L
|
||||
<<<
|
||||
2008/10/01 Sample
|
||||
Assets:Brokerage 10 AAPL
|
||||
Assets:Checking $-200.00
|
||||
|
||||
P 2008/10/20 12:00:00 AAPL $10.00
|
||||
|
||||
; 2008/10/20 <Generated Transaction>
|
||||
; Assets:Brokerage $100
|
||||
; Equity:Unrealized Gains
|
||||
>>>1
|
||||
$-100.00 Assets
|
||||
$100.00 Brokerage
|
||||
$-200.00 Checking
|
||||
$100.00 L
|
||||
--------------------
|
||||
0
|
||||
>>>2
|
||||
=== 0
|
||||
|
|
@ -18,3 +18,31 @@ P 2008/10/20 12:00:00 AAPL $30.00
|
|||
0
|
||||
>>>2
|
||||
=== 0
|
||||
bal -V --unrealized --now=2009/11/25
|
||||
<<<
|
||||
2008/10/01 Sample
|
||||
Assets:Brokerage 10 AAPL
|
||||
Assets:Checking $-200.00
|
||||
|
||||
2008/10/01 Sample
|
||||
Assets:Brokerage -10 QQQQ
|
||||
Assets:Checking $1000
|
||||
|
||||
P 2008/10/20 12:00:00 AAPL $30.00
|
||||
P 2008/10/20 12:00:00 QQQQ $110
|
||||
|
||||
; 2008/10/20 <Generated Transaction>
|
||||
; Assets:Brokerage $100
|
||||
; Equity:Unrealized Gains
|
||||
|
||||
; 2008/10/20 <Generated Transaction>
|
||||
; Assets:Brokerage $-100
|
||||
; Equity:Unrealized Losses
|
||||
>>>1
|
||||
0 Assets
|
||||
$-800.00 Brokerage
|
||||
$800.00 Checking
|
||||
--------------------
|
||||
0
|
||||
>>>2
|
||||
=== 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue