summaryrefslogtreecommitdiff
path: root/test/baseline/opt-immediate.test
diff options
context:
space:
mode:
authortripun <tripun@gmail.com>2014-08-09 19:48:47 +0530
committerMartin Michlmayr <tbm@cyrius.com>2014-08-10 08:42:55 +0200
commite8be8f1a9b7a970d3b85564ec78aef6f813c84ad (patch)
tree98f26d0d87a94ecd3a0c833ee6aad6a2dcc4eed3 /test/baseline/opt-immediate.test
parent8eb83ecc9fac4749d730c5929adac5f183fa161d (diff)
downloadfork-ledger-e8be8f1a9b7a970d3b85564ec78aef6f813c84ad.tar.gz
fork-ledger-e8be8f1a9b7a970d3b85564ec78aef6f813c84ad.tar.bz2
fork-ledger-e8be8f1a9b7a970d3b85564ec78aef6f813c84ad.zip
add test for --immediate
Diffstat (limited to 'test/baseline/opt-immediate.test')
-rw-r--r--test/baseline/opt-immediate.test32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/baseline/opt-immediate.test b/test/baseline/opt-immediate.test
index e69de29b..fce6d220 100644
--- a/test/baseline/opt-immediate.test
+++ b/test/baseline/opt-immediate.test
@@ -0,0 +1,32 @@
+D 1000.00 EUR
+
+2012-01-01 * Test
+ Assets:Investments 1 AAA @@ 10.00 EUR
+ Assets:Investments 1 BBB @@ 20.00 EUR
+ Equity:Opening balance
+
+P 2012-07-01 AAA 10.123 EUR
+P 2012-07-01 BBB 20.123 EUR
+
+test bal -V --unrealized
+ 30.25 EUR Assets:Investments
+ -30.25 EUR Equity
+ -30.00 EUR Opening balance
+ -0.25 EUR Unrealized Gains
+--------------------
+ 0
+end test
+
+test bal -V --immediate
+ 30.00 EUR Assets:Investments
+ -30.00 EUR Equity:Opening balance
+--------------------
+ 0
+end test
+
+test reg -V --immediate
+12-Jan-01 Test Assets:Investments 10.00 EUR 10.00 EUR
+ Assets:Investments 20.00 EUR 30.00 EUR
+ Equity:Opening balance -30.00 EUR 0
+end test
+