diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-08-10 18:38:51 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-08-10 18:38:51 +0200 |
commit | d6d37516fd1ccf6b57e196bd946306b7be6941d0 (patch) | |
tree | 84e40d0738c00691a1e95fc376220063462e6128 /test | |
parent | 29bd78ca4b4aed966e7d2e698390daea1b756ba2 (diff) | |
parent | 35c7c516fcd0760ef43a75340e4109ca23381131 (diff) | |
download | fork-ledger-d6d37516fd1ccf6b57e196bd946306b7be6941d0.tar.gz fork-ledger-d6d37516fd1ccf6b57e196bd946306b7be6941d0.tar.bz2 fork-ledger-d6d37516fd1ccf6b57e196bd946306b7be6941d0.zip |
Merge pull request #315 from tripun/options_tests
add test for --equity
Diffstat (limited to 'test')
-rw-r--r-- | test/baseline/opt-equity.test | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test new file mode 100644 index 00000000..80503e09 --- /dev/null +++ b/test/baseline/opt-equity.test @@ -0,0 +1,49 @@ +D 1000.00 GBP + +2011-03-04 Buy shares + Assets:Broker 2 AAA @ 0.90 GBP + Assets:Bank + +2011-03-05 Buy shares + Assets:Broker 2 AAA @ 1.00 GBP + Assets:Bank + +test reg --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 4 AAA 4 AAA + -3.80 GBP + Equit:Opening Balances -4 AAA -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg assets --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 4 AAA 4 AAA + -3.80 GBP + Equit:Opening Balances -4 AAA -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg assets:bank --equity +11-Mar-05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + +test reg assets:broker --equity +11-Mar-05 Opening Balances Assets:Broker 4 AAA 4 AAA + Equit:Opening Balances -4 AAA 0 +end test + +test reg --lots --date-format %Y/%m/%d --equity +2011/03/05 Opening Balances Assets:Bank -3.80 GBP -3.80 GBP + Assets:Broker 2 AAA {0.90 GBP} [2011/03/04] 2 AAA {0.90 GBP} [2011/03/04] + -3.80 GBP + Assets:Broker 2 AAA {1.00 GBP} [2011/03/05] 2 AAA {0.90 GBP} [2011/03/04] + 2 AAA {1.00 GBP} [2011/03/05] + -3.80 GBP + Equit:Opening Balances -2 AAA {0.90 GBP} [2011/03/04] 2 AAA {1.00 GBP} [2011/03/05] + -3.80 GBP + Equit:Opening Balances -2 AAA {1.00 GBP} [2011/03/05] -3.80 GBP + Equit:Opening Balances 3.80 GBP 0 +end test + |