summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2017-01-16 18:53:53 +0100
committerGitHub <noreply@github.com>2017-01-16 18:53:53 +0100
commit65eda1b0482f0db0a1842a77d95fba7612e369fb (patch)
treeb206fcd38ca25f8339f4e8950401f7ce253e07a9 /test
parenta3dfbfced80f3979043de5e8e59364f75905a093 (diff)
parent59d0da60042f02b80903ec61d002983bc55cf0f6 (diff)
downloadfork-ledger-65eda1b0482f0db0a1842a77d95fba7612e369fb.tar.gz
fork-ledger-65eda1b0482f0db0a1842a77d95fba7612e369fb.tar.bz2
fork-ledger-65eda1b0482f0db0a1842a77d95fba7612e369fb.zip
Merge pull request #476 from thdox/bug-1055
Add regress test for bug 1055
Diffstat (limited to 'test')
-rw-r--r--test/regress/1055.test26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/regress/1055.test b/test/regress/1055.test
new file mode 100644
index 00000000..e3e997fa
--- /dev/null
+++ b/test/regress/1055.test
@@ -0,0 +1,26 @@
+2011-01-01 * Opening balance
+ Assets:Broker 250.00 GBP = 250.00 GBP
+ Equity:Opening balance -250.00 GBP
+
+2011-02-01 * Buy 1 AAA for 10.00 GBP
+ Assets:Broker 1 AAA = 1 AAA
+ Assets:Broker -10.00 GBP
+
+2011-03-01 * Buy 1 AAA for 10.00 GBP
+ Assets:Broker 1 AAA = 2 AAA
+ Assets:Broker -10.00 GBP
+
+2011-04-01 * Buy 1 BBB for 15.00 GBP
+ Assets:Broker 1 BBB = 1 BBB
+ Assets:Broker -15.00 GBP
+
+test bal
+ 2 AAA
+ 1 BBB
+ 215.00 GBP Assets:Broker
+ -250.00 GBP Equity:Opening balance
+--------------------
+ 2 AAA
+ 1 BBB
+ -35.00 GBP
+end test