ledger/test/baseline
Martin Michlmayr 2854ecdd19 Regenerate tests for fix for bug #713
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.
2014-07-14 20:43:24 -04:00
..
CMakeLists.txt Enable the baseline and manual tests 2012-05-20 05:01:17 -05:00
cmd-accounts.test Fixes bug 514. accounts and commodities output now sorts 2013-01-29 10:03:47 -07:00
cmd-balance.test Add more baseline tests 2012-03-23 08:58:33 +00:00
cmd-budget.test Add more baseline tests 2012-03-25 14:54:50 +01:00
cmd-cleared.test Add more baseline tests 2012-03-23 08:58:33 +00:00
cmd-commodities.test Fixes bug 514. accounts and commodities output now sorts 2013-01-29 10:03:47 -07:00
cmd-convert.test.disable Disable three tests preventing Jenkins from succeeding 2013-06-19 13:49:10 -05:00
cmd-convert1.dat Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-convert2.dat Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-convert3.dat Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-convert4.dat Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-csv.test Add more baseline tests 2012-03-23 08:58:33 +00:00
cmd-echo.test Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-entry.test Fix some tests not to be time-sensitive 2012-03-27 20:15:42 +01:00
cmd-org.test Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-payees.test Improve baseline/cmd-payees.test 2012-03-25 11:38:26 +01:00
cmd-pricedb.test Add more baseline tests 2012-03-23 08:58:33 +00:00
cmd-pricemap.test Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-prices.test Add more baseline tests 2012-03-23 08:58:33 +00:00
cmd-print.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
cmd-register.test Add more baseline tests 2012-03-25 14:54:50 +01:00
cmd-script.test Many improvements to lambdas and function calling 2012-03-08 00:44:40 -06:00
cmd-select.test Fix query string for select account 2014-05-30 22:01:08 -04:00
cmd-source.test Remove trailing whitespace from error messages 2014-05-13 18:08:34 -04:00
cmd-stats.test Add more baseline tests 2012-03-25 14:11:59 +01:00
cmd-tags.test Add test case for tags command 2014-05-19 21:48:21 -04:00
cmd-xact.test Fix some tests not to be time-sensitive 2012-03-27 20:15:42 +01:00
dir-account.test Update line numbers 2014-05-26 18:31:59 -04:00
dir-alias-fail.test Update line numbers 2014-05-26 18:31:59 -04:00
dir-alias.test Add a test case for aliases defined in account directives 2014-05-17 21:29:58 -04:00
dir-apply.dat Fixed a few bugs related to apply directives 2012-03-12 22:38:36 -05:00
dir-apply.test Fixed a few bugs related to apply directives 2012-03-12 22:38:36 -05:00
dir-commodity-alias.test Add more tests 2012-03-27 20:16:17 +01:00
dir-commodity-value.test Added "value" sub-directive for commodity directive 2012-03-06 03:24:06 -06:00
dir-commodity.test Remove trailing whitespace from error messages 2014-05-13 18:08:34 -04:00
dir-import_py.test Simplified Python import in a journal file 2012-03-05 21:48:45 -06:00
dir-payee.test Add test case or new payee uuid feature 2014-05-13 18:03:48 -04:00
dir-python_py.test This now works: ledger --import os eval 'os.path.isdir("/tmp")' 2012-03-02 01:36:58 -06:00
dir-tag.test Fixed an explicit path within a unit test 2012-03-01 21:21:25 -06:00
feat-annotations.test Added syntactic sugar for lot pricing: {{$500.00}} 2012-03-10 02:27:33 -06:00
feat-balance-assignments.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
feat-balance_assert-off.test Add test case for balance assertion that's off 2014-05-18 09:34:55 -04:00
feat-balance_assert.test Added balance assertion test 2012-03-06 03:31:46 -06:00
feat-balance_assert_split.test Correct one of the baseline tests 2014-04-14 11:41:52 -05:00
feat-check.test Refactored the notion of "the current parsing context" 2012-03-01 03:31:28 -06:00
feat-convert-with-directives.dat Fix typo in filename 2014-05-26 18:26:55 -04:00
feat-convert-with-directives.test Fix typo in filename 2014-05-26 18:26:55 -04:00
feat-fixated-prices.test All tests are working again but one 2012-03-05 05:03:52 -06:00
feat-fixated-prices_2.test Added new account/payee/commodity directives 2012-02-27 02:31:09 -06:00
feat-import_py.test Added a new 'python' directive 2012-03-01 17:32:51 -06:00
feat-option_py.test Simplify feat-option_py.test 2012-03-30 04:49:19 -05:00
feat-value-expr.test Fixed the behavior of fn_nail_down 2012-03-09 07:02:53 -06:00
feat-value_py.test Added more baseline testing, for valexprs and Python 2012-03-01 22:20:20 -06:00
featimport.py Added a new 'python' directive 2012-03-01 17:32:51 -06:00
featoption.py Allow --options to be added by the user in Python 2012-03-01 23:40:02 -06:00
opt-abbrev-len.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-account-width.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-account.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-actual.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-add-budget.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-amount-data.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-amount-width.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-amount.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-auto-match.dat Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-auto-match.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-aux-date.test fix bug 748: option aliases not recognized 2013-01-15 23:30:17 +01:00
opt-average.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-balance-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-base.test Update tests for fix for bug #713 2014-07-14 20:42:44 -04:00
opt-basis.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-begin.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-bold-if.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-budget-format.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-budget.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-budget_only.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-budget_range.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-by-payee.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-check-payees.test Add more baseline tests. 2012-03-25 20:26:18 +01:00
opt-cleared-format.test Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
opt-cleared.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-code-as-account.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-code-as-payee.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-collapse-if-zero.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-collapse.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-collapse_reg.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-color.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-columns.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-commodity-as-account.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-commodity-as-payee.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-cost.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-count.test Fixes bug 514. accounts and commodities output now sorts 2013-01-29 10:03:47 -07:00
opt-csv-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-current.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-daily.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-date-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-date-width.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-date.test Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
opt-datetime-format.test Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
opt-day-break.test Added option --day-break 2012-03-17 05:27:43 -05:00
opt-dc.test Added --dc option, for debit/credit style reports 2012-03-10 21:34:51 -06:00
opt-decimal-comma.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-depth.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-depth_flat.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-deviation.test Many options now have additive effect 2012-03-07 12:46:46 -06:00
opt-display-amount.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-display-total.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-display.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-dow.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-empty.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-empty_bal.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-empty_bal_flat.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-empty_collapse.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-end.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-equity.test Honour date-format for lot dates 2014-05-13 00:03:39 -04:00
opt-exact.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-exchange.test Improved the behavior of -X 2012-03-09 20:02:53 -06:00
opt-explicit.test Add more baseline tests. 2012-03-25 20:26:18 +01:00
opt-file.test.disable Disable three tests preventing Jenkins from succeeding 2013-06-19 13:49:10 -05:00
opt-file1.dat Add more test cases 2012-03-22 21:48:50 +00:00
opt-file2.dat Add more test cases 2012-03-22 21:48:50 +00:00
opt-flat.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-forecast-while.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-forecast-years.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-forecast_only.test Corrected two tests 2011-02-12 18:14:30 -05:00
opt-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-gain.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-generated.test Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
opt-group-by.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-group-title-format.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-head.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-historical.test Update tests for fix for bug #713 2014-07-14 20:42:44 -04:00
opt-immediate.test Added --immediate option 2012-03-10 21:58:28 -06:00
opt-inject.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-input-date-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-invert.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-limit.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-lot-dates.test Regenerate tests for fix for bug #713 2014-07-14 20:43:24 -04:00
opt-lot-notes.test Add more baseline tests 2012-03-25 17:39:49 +01:00
opt-lot-prices.test Regenerate tests for fix for bug #713 2014-07-14 20:43:24 -04:00
opt-lot-tags.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-lots-actual.test Honour date-format for lot dates 2014-05-13 00:03:39 -04:00
opt-lots.test Regenerate tests for fix for bug #713 2014-07-14 20:43:24 -04:00
opt-lots_basis.test Regenerate tests for fix for bug #713 2014-07-14 20:43:24 -04:00
opt-lots_basis_base.test Regenerate tests for fix for bug #713 2014-07-14 20:43:24 -04:00
opt-market.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-master-account.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-meta-width.test Added --dc option, for debit/credit style reports 2012-03-10 21:34:51 -06:00
opt-meta.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-monthly.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-no-aliases.test Add test case for --no-aliases option 2014-05-17 21:21:56 -04:00
opt-no-pager.test Reworked the way that options are handled 2012-03-09 03:51:53 -06:00
opt-no-rounding.test Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
opt-no-titles.test Ensure that all options are tested and documented 2010-06-15 18:19:54 -04:00
opt-no-total.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-now.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-only.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-output.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-pager.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-payee-as-account.test Don't allow trailing ws in abbrev. account segments 2012-03-16 05:30:34 -05:00
opt-payee-width.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-payee.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-pedantic.test Remove trailing whitespace from error messages 2014-05-13 18:08:34 -04:00
opt-pending.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-percent.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-period.test Rewrite the way interval reports are generated 2012-02-28 02:34:37 -06:00
opt-permissive.test Added new account/payee/commodity directives 2012-02-27 02:31:09 -06:00
opt-pivot.test Add more --pivot tests 2014-05-11 10:00:53 +02:00
opt-plot-amount-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-plot-total-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-prepend-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-prepend-width.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-price.test Update tests for fix for bug #713 2014-07-14 20:42:44 -04:00
opt-pricedb-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-prices-format.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-primary-date.test Renamed actual/effective dates to primary/auxiliary 2012-02-28 03:02:16 -06:00
opt-quantity.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-quarterly.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-raw.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-real.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-recursive-aliases.test Renamed test for --recursive-aliases option for consistency 2014-05-17 21:25:55 -04:00
opt-register-format.test Honour date-format for lot dates 2014-05-13 00:03:39 -04:00
opt-related-all.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-related.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-revalued-only.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-revalued.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-rich-data.test Added --rich-data for 'convert', and SHA1 checksum checking 2012-02-26 15:45:15 -06:00
opt-seed.test.save Disabled the --seed regression test 2009-10-11 05:10:43 -04:00
opt-sort-all.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-sort-xacts.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-sort.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-start-of-week.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-strict.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-subtotal.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-tail.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-time-report.test Added --time-report option 2012-03-13 03:45:06 -05:00
opt-total-data.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-total-width.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-total.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-truncate.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-unbudgeted.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-uncleared.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-unrealized-gains.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-unrealized-losses.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-unrealized.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-unround.test Many options now have additive effect 2012-03-07 12:46:46 -06:00
opt-value-expr.test Added --value-expr option 2012-03-09 20:11:38 -06:00
opt-verify-memory.test Added --verify-memory and missing TRACE_[CD]TOR calls 2012-03-18 01:01:30 -05:00
opt-weekly.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-weekly_empty.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-wide.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00
opt-yearly.test Changed testing format to aid with debugging 2011-02-12 18:11:26 -05:00