diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-07-14 20:44:48 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-07-14 20:44:48 -0400 |
commit | a44572f3ecc8649539d574bd7171597644d1e92e (patch) | |
tree | c9cd9bfb32db230c61c79616eba72df54954e0c9 /test/regress/712-b.test | |
parent | 7241b1f62b8a441b11ea96a7a45674c1e11fecd8 (diff) | |
download | fork-ledger-a44572f3ecc8649539d574bd7171597644d1e92e.tar.gz fork-ledger-a44572f3ecc8649539d574bd7171597644d1e92e.tar.bz2 fork-ledger-a44572f3ecc8649539d574bd7171597644d1e92e.zip |
Add a regression test for bug #712
Diffstat (limited to 'test/regress/712-b.test')
-rw-r--r-- | test/regress/712-b.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/regress/712-b.test b/test/regress/712-b.test new file mode 100644 index 00000000..7f183b5f --- /dev/null +++ b/test/regress/712-b.test @@ -0,0 +1,22 @@ + +2011-01-01 * Opening balance + Assets:Cash 10.00 GBP + Equity:Opening balance -10.00 GBP + +2011-02-01 * Buy 1 AAA for 10.00 GBP + Assets:Investments 1 AAA {10.00 GBP} + Assets:Cash -10.00 GBP + +2011-12-07 * Sell AAA with a gain + Assets:Cash 12.00 GBP + Assets:Investments -1 AAA {10.00 GBP} @@ 12.00 GBP + Income:Capital gains -2.00 GBP + +test bal + 12.00 GBP Assets:Cash + -10.00 GBP Equity:Opening balance + -2.00 GBP Income:Capital gains +-------------------- + 0 +end test + |