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-price.test | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/baseline/opt-price.test') diff --git a/test/baseline/opt-price.test b/test/baseline/opt-price.test index 2ebd061e..2a9778cc 100644 --- a/test/baseline/opt-price.test +++ b/test/baseline/opt-price.test @@ -18,7 +18,7 @@ end test test reg -B equities 08-Jan-01 Purchase Apple shares Equities $2000 $2000 -08-Jun-30 Sell some Apple sha.. Equities $-1250 $750 +08-Jun-30 Sell some Apple sha.. Equities $-1000 $1000 end test test reg --end 2009/06/26 -V equities @@ -31,8 +31,9 @@ end test test reg --end 2009/06/26 -G equities 08-Jun-30 Commodities revalued $500 $500 -09-Jan-31 Commodities revalued $250 $750 -09-Jun-26 Commodities revalued $500 $1250 +08-Jun-30 Sell some Apple sha.. Equities $-250 $250 +09-Jan-31 Commodities revalued $250 $500 +09-Jun-26 Commodities revalued $500 $1000 end test test reg -I equities -- cgit v1.2.3