summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2012-03-23 09:32:39 +0000
committerMartin Michlmayr <tbm@cyrius.com>2012-03-23 09:32:39 +0000
commit902d09fd16166e97a66cd73e5f091a9593554b22 (patch)
treec5db3f7073154292d9711f0f88764390bfa2551b /test
parentc4db812173d51113bdfcc98c186854c638b870af (diff)
downloadfork-ledger-902d09fd16166e97a66cd73e5f091a9593554b22.tar.gz
fork-ledger-902d09fd16166e97a66cd73e5f091a9593554b22.tar.bz2
fork-ledger-902d09fd16166e97a66cd73e5f091a9593554b22.zip
Add test case for bug #379
Diffstat (limited to 'test')
-rw-r--r--test/baseline/opt-equity.test59
1 files changed, 54 insertions, 5 deletions
diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test
index 90f4743a..ba9c202c 100644
--- a/test/baseline/opt-equity.test
+++ b/test/baseline/opt-equity.test
@@ -1,9 +1,58 @@
-2007/02/02 RD VMMXX
- Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
- Income:Dividends:Vanguard:VMMXX $-0.35
+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 equity
+2011/03/05 Opening Balances
+ Assets:Bank -3.80 GBP
+ Assets:Broker 4 AAA
+ Equity:Opening Balances 3.80 GBP
+ Equity:Opening Balances -4 AAA
+end test
test equity assets
-2007/02/02 Opening Balances
- Assets:Investments:Vanguard:VMMXX 0.350 VMMXX
+2011/03/05 Opening Balances
+ Assets:Bank -3.80 GBP
+ Assets:Broker 4 AAA
+ Equity:Opening Balances 3.80 GBP
+ Equity:Opening Balances -4 AAA
+end test
+
+test equity assets:bank
+2011/03/05 Opening Balances
+ Assets:Bank -3.80 GBP
+ Equity:Opening Balances
+end test
+
+test equity assets:broker
+2011/03/05 Opening Balances
+ Assets:Broker 4 AAA
Equity:Opening Balances
end test
+
+test equity --lot-prices
+2011/03/05 Opening Balances
+ Assets:Bank -3.80 GBP
+ Assets:Broker 2 AAA {0.90 GBP}
+ Assets:Broker 2 AAA {1.00 GBP}
+ Equity:Opening Balances 3.80 GBP
+ Equity:Opening Balances -2 AAA {0.90 GBP}
+ Equity:Opening Balances -2 AAA {1.00 GBP}
+end test
+
+test equity --lots
+2011/03/05 Opening Balances
+ Assets:Bank -3.80 GBP
+ Assets:Broker 2 AAA {0.90 GBP} [2011/03/04]
+ Assets:Broker 2 AAA {1.00 GBP} [2011/03/05]
+ Equity:Opening Balances 3.80 GBP
+ Equity:Opening Balances -2 AAA {0.90 GBP} [2011/03/04]
+ Equity:Opening Balances -2 AAA {1.00 GBP} [2011/03/05]
+end test
+