summaryrefslogtreecommitdiff
path: root/test/baseline/opt-unrealized.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/baseline/opt-unrealized.test')
-rw-r--r--test/baseline/opt-unrealized.test48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/baseline/opt-unrealized.test b/test/baseline/opt-unrealized.test
new file mode 100644
index 00000000..c472d9ef
--- /dev/null
+++ b/test/baseline/opt-unrealized.test
@@ -0,0 +1,48 @@
+bal -V --unrealized
+<<<
+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 Equity:Unrealized Gains
+--------------------
+ 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