summaryrefslogtreecommitdiff
path: root/test/baseline/opt-lots_basis_base.test
Commit message (Collapse)AuthorAgeFilesLines
* Regenerate tests for fix for bug #713Martin Michlmayr2014-07-141-59/+39
| | | | | | | | | | | | | | | | | | | | | | | | | The fix for bug #713 changes the way capital gains as well as basis costs are shown. All of these tests use the same input file, which includes capital gains and losses. The tests are too long to update and verify manually but I verified some files and believe the output is correct. I've therefore updated the tests with the output of the fixed ledger. Let's take baseline/opt-lot-dates.test as one example. In the past, ledger generated the following incorrect Equity entries: 190.42G Equity 236.83G Capital Gains -46.41G Capital Losses If you compare the end of the diff of the test, you'll see: - 35.42G + -155.00G The difference is: 35.42 - -155.00 = 190.42 This matches exactly the Equity entries previously generated, which shouldn't be there.
* Changed testing format to aid with debuggingJohn Wiegley2011-02-121-3/+3
|
* Removed needless "=== 0" and ">>>2" lines from test filesJohn Wiegley2011-02-121-2/+0
|
* Price annotation no longer inject an implied costJohn Wiegley2010-06-221-11/+17
| | | | | | | | | | | | | | | | | | | | | | | Consider the following transaction: 2010-06-22 Sample Assets:Brokerage 10 AAPL {$30} Assets:Brokerage Previously, this would have been equivalent to: 2010-06-22 Sample Assets:Brokerage 10 AAPL @ $30 Assets:Brokerage However, this is not always what the user expects to happen. When @ is not being used, the transaction should reflect a mere transfer of commodities. This is now how it works, and thus the above transaction is now equivalent to the following instead: 2010-06-22 Sample Assets:Brokerage 10 AAPL {$30} Assets:Brokerage -10 AAPL {$30}
* Do not implicitly sort register outputJohn Wiegley2010-03-171-6/+6
| | | | The switches the default back to the same as 2.x, which is --unsorted.
* Sort by default unless --unsorted is selectedJohn Wiegley2009-10-281-6/+6
|
* Added several baseline tests regarding lot detailsJohn Wiegley2009-02-241-0/+891