summaryrefslogtreecommitdiff
path: root/test/baseline/opt-historical.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-08 01:00:16 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-08 01:00:16 -0600
commit113fb0ee6a520dccdcd18a634f7ee73acd8ee488 (patch)
treee8038d74b59e2d71cabbfefc3fda5453332a5b77 /test/baseline/opt-historical.test
parent21e8b7f6f0a182f67899c5cd3689a5e646d8ed4a (diff)
downloadfork-ledger-113fb0ee6a520dccdcd18a634f7ee73acd8ee488.tar.gz
fork-ledger-113fb0ee6a520dccdcd18a634f7ee73acd8ee488.tar.bz2
fork-ledger-113fb0ee6a520dccdcd18a634f7ee73acd8ee488.zip
Added --historical option
Diffstat (limited to 'test/baseline/opt-historical.test')
-rw-r--r--test/baseline/opt-historical.test61
1 files changed, 61 insertions, 0 deletions
diff --git a/test/baseline/opt-historical.test b/test/baseline/opt-historical.test
new file mode 100644
index 00000000..1cd141ab
--- /dev/null
+++ b/test/baseline/opt-historical.test
@@ -0,0 +1,61 @@
+2012-03-01 Broker
+ Assets:Stocks 10 APPL {$1} @ $1
+ Equity
+
+2012-03-02 Broker
+ Assets:Stocks 10 APPL {$1} @ $2
+ Equity
+
+2012-03-03 Broker
+ Assets:Stocks 10 APPL {$1} @ $3
+ Equity
+
+2012-03-04 Broker
+ Assets:Stocks 10 APPL {$1} @ $4
+ Equity
+
+2012-03-05 Broker
+ Assets:Stocks 10 APPL {$1} @ $5
+ Equity
+
+test reg stocks -O
+12-Mar-01 Broker Assets:Stocks 10 APPL 10 APPL
+12-Mar-02 Broker Assets:Stocks 10 APPL 20 APPL
+12-Mar-03 Broker Assets:Stocks 10 APPL 30 APPL
+12-Mar-04 Broker Assets:Stocks 10 APPL 40 APPL
+12-Mar-05 Broker Assets:Stocks 10 APPL 50 APPL
+end test
+
+test reg stocks -B
+12-Mar-01 Broker Assets:Stocks $10 $10
+12-Mar-02 Broker Assets:Stocks $20 $30
+12-Mar-03 Broker Assets:Stocks $30 $60
+12-Mar-04 Broker Assets:Stocks $40 $100
+12-Mar-05 Broker Assets:Stocks $50 $150
+end test
+
+test reg stocks -I
+12-Mar-01 Broker Assets:Stocks $10 $10
+12-Mar-02 Broker Assets:Stocks $10 $20
+12-Mar-03 Broker Assets:Stocks $10 $30
+12-Mar-04 Broker Assets:Stocks $10 $40
+12-Mar-05 Broker Assets:Stocks $10 $50
+end test
+
+test reg stocks -O -H
+end test
+
+test reg stocks -B -H
+end test
+
+test reg stocks -I -H
+end test
+
+test reg stocks -O -V
+end test
+
+test reg stocks -B -V
+end test
+
+test reg stocks -I -V
+end test