From ddfabe06924bab1af33340f3afc3230b29d575ee Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 14 Jul 2014 20:42:44 -0400 Subject: Update tests for fix for bug #713 John's fix for bug #713 changes the way basis cost are calculated. The patch also fixes #712, which caused ledger to create automatic Equity:Capital Gains that were not correct. Update the test cases accordingly after verifying the new output. --- test/baseline/opt-historical.test | 60 +++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'test/baseline/opt-historical.test') diff --git a/test/baseline/opt-historical.test b/test/baseline/opt-historical.test index 820f5ff0..a882d91a 100644 --- a/test/baseline/opt-historical.test +++ b/test/baseline/opt-historical.test @@ -50,11 +50,11 @@ test reg stocks -O end test test reg stocks -B -12-Jan-01 Broker Assets:Stocks $100 $100 -12-Feb-02 Broker Assets:Stocks $200 $300 -12-Mar-03 Broker Assets:Stocks $300 $600 -12-Apr-04 Broker Assets:Stocks $400 $1000 -12-May-05 Broker Assets:Stocks $500 $1500 +12-Jan-01 Broker Assets:Stocks $10 $10 +12-Feb-02 Broker Assets:Stocks $20 $30 +12-Mar-03 Broker Assets:Stocks $30 $60 +12-Apr-04 Broker Assets:Stocks $40 $100 +12-May-05 Broker Assets:Stocks $50 $150 end test test reg stocks -I @@ -98,11 +98,11 @@ test reg stocks -O -V --now=2012/05/10 end test test reg stocks -B -V -12-Jan-01 Broker Assets:Stocks $100 $100 -12-Feb-02 Broker Assets:Stocks $200 $300 -12-Mar-03 Broker Assets:Stocks $300 $600 -12-Apr-04 Broker Assets:Stocks $400 $1000 -12-May-05 Broker Assets:Stocks $500 $1500 +12-Jan-01 Broker Assets:Stocks $10 $10 +12-Feb-02 Broker Assets:Stocks $20 $30 +12-Mar-03 Broker Assets:Stocks $30 $60 +12-Apr-04 Broker Assets:Stocks $40 $100 +12-May-05 Broker Assets:Stocks $50 $150 end test test reg stocks -I -V @@ -138,11 +138,11 @@ test reg stocks -O -X EUR --now=2012/05/10 end test test reg stocks -B -X EUR -12-Jan-01 Broker Assets:Stocks EUR 200,00 EUR 200,00 -12-Feb-02 Broker Assets:Stocks EUR 400,00 EUR 600,00 -12-Mar-03 Broker Assets:Stocks EUR 600,00 EUR 1.200,00 -12-Apr-04 Broker Assets:Stocks EUR 800,00 EUR 2.000,00 -12-May-05 Broker Assets:Stocks EUR 1.000,00 EUR 3.000,00 +12-Jan-01 Broker Assets:Stocks EUR 20,00 EUR 20,00 +12-Feb-02 Broker Assets:Stocks EUR 40,00 EUR 60,00 +12-Mar-03 Broker Assets:Stocks EUR 60,00 EUR 120,00 +12-Apr-04 Broker Assets:Stocks EUR 80,00 EUR 200,00 +12-May-05 Broker Assets:Stocks EUR 100,00 EUR 300,00 end test test reg stocks -I -X EUR @@ -170,11 +170,11 @@ test reg stocks -O -H end test test reg stocks -B -H -12-Jan-01 Broker Assets:Stocks $100 $100 -12-Feb-02 Broker Assets:Stocks $200 $300 -12-Mar-03 Broker Assets:Stocks $300 $600 -12-Apr-04 Broker Assets:Stocks $400 $1000 -12-May-05 Broker Assets:Stocks $500 $1500 +12-Jan-01 Broker Assets:Stocks $10 $10 +12-Feb-02 Broker Assets:Stocks $20 $30 +12-Mar-03 Broker Assets:Stocks $30 $60 +12-Apr-04 Broker Assets:Stocks $40 $100 +12-May-05 Broker Assets:Stocks $50 $150 end test test reg stocks -I -H @@ -202,11 +202,11 @@ test reg stocks -O -H -V end test test reg stocks -B -H -V -12-Jan-01 Broker Assets:Stocks $100 $100 -12-Feb-02 Broker Assets:Stocks $200 $300 -12-Mar-03 Broker Assets:Stocks $300 $600 -12-Apr-04 Broker Assets:Stocks $400 $1000 -12-May-05 Broker Assets:Stocks $500 $1500 +12-Jan-01 Broker Assets:Stocks $10 $10 +12-Feb-02 Broker Assets:Stocks $20 $30 +12-Mar-03 Broker Assets:Stocks $30 $60 +12-Apr-04 Broker Assets:Stocks $40 $100 +12-May-05 Broker Assets:Stocks $50 $150 end test test reg stocks -I -H -V @@ -234,11 +234,11 @@ test reg stocks -O -H -X EUR end test test reg stocks -B -H -X EUR -12-Jan-01 Broker Assets:Stocks EUR 200,00 EUR 200,00 -12-Feb-02 Broker Assets:Stocks EUR 400,00 EUR 600,00 -12-Mar-03 Broker Assets:Stocks EUR 600,00 EUR 1.200,00 -12-Apr-04 Broker Assets:Stocks EUR 800,00 EUR 2.000,00 -12-May-05 Broker Assets:Stocks EUR 1.000,00 EUR 3.000,00 +12-Jan-01 Broker Assets:Stocks EUR 20,00 EUR 20,00 +12-Feb-02 Broker Assets:Stocks EUR 40,00 EUR 60,00 +12-Mar-03 Broker Assets:Stocks EUR 60,00 EUR 120,00 +12-Apr-04 Broker Assets:Stocks EUR 80,00 EUR 200,00 +12-May-05 Broker Assets:Stocks EUR 100,00 EUR 300,00 end test test reg stocks -I -H -X EUR -- cgit v1.2.3