summaryrefslogtreecommitdiff
path: root/test/baseline/opt-unrealized.test
blob: 034eab9b8546a6894677baaf7299ed9a1ccc363a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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

test bal -V --unrealized
                   0  Assets
            $-800.00    Brokerage
             $800.00    Checking
--------------------
                   0
end test