From a44572f3ecc8649539d574bd7171597644d1e92e Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 14 Jul 2014 20:44:48 -0400 Subject: Add a regression test for bug #712 --- test/regress/712-a.test | 10 ++++++++++ test/regress/712-b.test | 22 ++++++++++++++++++++++ test/regress/712.test | 10 ---------- 3 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 test/regress/712-a.test create mode 100644 test/regress/712-b.test delete mode 100644 test/regress/712.test (limited to 'test') diff --git a/test/regress/712-a.test b/test/regress/712-a.test new file mode 100644 index 00000000..e0dbfa5a --- /dev/null +++ b/test/regress/712-a.test @@ -0,0 +1,10 @@ +2012/09/27 PLN Payment + Accrued 3,547.65 PLN {=$0.315786} + Accrued 5,320.06 PLN {=$0.315786} + Assets:Checking $-2,800.30 + +test -X $ -V reg +12-Sep-27 PLN Payment Accrued $1,120.30 $1,120.30 + Accrued $1,680.00 $2,800.30 + Assets:Checking $-2,800.30 0 +end test 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 + diff --git a/test/regress/712.test b/test/regress/712.test deleted file mode 100644 index e0dbfa5a..00000000 --- a/test/regress/712.test +++ /dev/null @@ -1,10 +0,0 @@ -2012/09/27 PLN Payment - Accrued 3,547.65 PLN {=$0.315786} - Accrued 5,320.06 PLN {=$0.315786} - Assets:Checking $-2,800.30 - -test -X $ -V reg -12-Sep-27 PLN Payment Accrued $1,120.30 $1,120.30 - Accrued $1,680.00 $2,800.30 - Assets:Checking $-2,800.30 0 -end test -- cgit v1.2.3