summaryrefslogtreecommitdiff
path: root/test/regress
Commit message (Collapse)AuthorAgeFilesLines
* Rename file from test/regress/634AA589.test tothdox2015-01-221-19/+0
| | | | | test/baseline/opt-permissive.test. Actually 634AA589 is the initial commit that created permissive option.
* [fix] Make trim function trim trailing whitespaceAlexis Hildebrandt2015-01-201-0/+11
| | | | | | std::isspace(*e) returns false for the end of c-string null-byte. Bugzilla: 1106
* Fix -i short-option for --init-fileAlexis Hildebrandt2015-01-151-0/+8
| | | | | | Bugfix for #1102 Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
* Bugfix 1038: empty reg report for this month periodAlexis Hildebrandt2014-12-293-0/+56
| | | | | when year was specified with literal Y or year directive, but not when using apply year.
* Fix crash when using -M with empty resultAlexis Hildebrandt2014-12-161-0/+37
| | | | | | | ledger -f /dev/null reg -M test causes a segmentation fault, see bug 730 and duplicates 1080 and 1084 for details. Kudos to Ikke for helping with debugging.
* Add test case for off by one error in textual.cc fixed in a013a73bMartin Michlmayr2014-12-111-0/+10
|
* Add ISO 8601 date as recognized date stringMartin Michlmayr2014-10-021-0/+31
| | | | | | | | Dates specified via --begin and --end are converted to a value expression using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by ledger. Bug fix for #1072
* Fix period expression parsing for month to month without yearMartin Michlmayr2014-10-021-0/+161
| | | | Bug fix for #1074, a regression introduced by the fix for bug #375
* fix regression testJohann Klähn2014-09-101-1/+1
| | | | see pull request #320 / commit 4c8604266580b2
* Add a regression test for bug #712Martin Michlmayr2014-07-142-0/+22
|
* Add regression tests for bug #713Martin Michlmayr2014-07-142-0/+88
|
* Update tests for fix for bug #713Martin Michlmayr2014-07-143-7/+2
| | | | | | | 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.
* Add regression test for commit de17ccf1Martin Michlmayr2014-06-301-0/+61
| | | | | Add regression test for commit de17ccf1 (" When a status flag (! or *) is explicitly specified for an individual…")
* Don't lose commodity when cost is not separated by whitespaceMartin Michlmayr2014-06-051-0/+39
| | | | | | | | When a cost was specified without a whitespace after the @ symbol, as in @$5.01, this was incorrectly parsed as 5.01 (losing the commodity) rather than $5.01. Bug fix for #1050
* Improve backwards compatibility with ledger2Martin Michlmayr2014-05-302-1/+91
| | | | | | | This brings some single character format strings in line with what they actually meant in ledger2. Bug fix for #755
* Handle POST_COST_VIRTUAL in printMartin Michlmayr2014-05-301-0/+35
| | | | Bug fix for #1046
* Check whether a month is followed by a yearMartin Michlmayr2014-05-301-0/+36
| | | | Bug fix for #375
* Add test case to test for invalid option embedded in journalMartin Michlmayr2014-05-261-0/+11
|
* Add test case for: option --permissive now quiets balance assertionsMartin Michlmayr2014-05-181-0/+19
| | | | | Add a test csae for the change "The option --permissive now quiets balance assertions" (634aa589)
* Fix bug introduced by commit AA2FF2Bthdox2014-05-171-0/+10
| | | | Correction is to not use uninitialized amount
* Ensure that high-levels directives have arguments if they need oneMartin Michlmayr2014-05-141-0/+80
| | | | | Ensure that high-levels directives, such as account, alias and commodity, have arguments if they need one. Bug fix for #1036
* Ensure that directives have arguments if they need oneMartin Michlmayr2014-05-141-0/+85
| | | | | Ensure that account, commodity and payee directives have arguments if they need one. Bug fix for #785
* Remove trailing whitespace from error messagesMartin Michlmayr2014-05-1312-15/+15
| | | | Fix for bug #867
* Add a test for an error in an included fileMartin Michlmayr2014-05-132-0/+22
|
* Update Python tests for fix for bug #383Martin Michlmayr2014-05-132-2/+2
|
* Add test cases for bug #494Martin Michlmayr2014-05-132-0/+27
| | | | | The issues raised in bug #494 are no longer there but let's add some test cases.
* Honour date-format for lot datesMartin Michlmayr2014-05-131-0/+29
| | | | Fixes bug #383
* Add another test case for bug #999Martin Michlmayr2014-05-122-0/+22
|
* Use the POST_COST_VIRTUAL flag when exchange commoditiesJohn Wiegley2014-05-081-0/+6
| | | | Fixes #999
* Fix apply_year_directiveAlexis Hildebrandt2014-02-121-0/+24
| | | | | | Using the Y 2014 syntax works fine, but using apply year 2014 resulted in the following error: Error: Year is out of valid range: 1400..10000 since part of the given year string was chopped off.
* Disable three tests preventing Jenkins from succeedingJohn Wiegley2013-06-191-0/+0
| | | | | | These aren't actually failures, just issues with the way that Jenkins works on my system (mainly because ~/.jenkins is a symlink pointing at another volume).
* Fix #784John Wiegley2013-05-231-1/+1
|
* Remove some unnecessary and complicated logicJohn Wiegley2013-05-191-0/+10
| | | | Fixes #712
* Add unit test for 686John Wiegley2013-05-191-0/+33
|
* Get the unit tests passing againJohn Wiegley2013-05-192-2/+2
|
* Divorces 25A099C9 from the actual amount.h source fileCraig Earls2013-01-301-21/+21
| | | | | | | This test appears to test the garbage input handling on ledger. garbage-input.dat has been added to the test directory for use by this test, allowing development with amount.h to proceed without tripping this particular test inappropriately
* Merge branch 'master' into nextJohann Klähn2013-01-186-0/+31
|\ | | | | | | | | | | Some commits were on the master branch but not yet on the next branch due to a pull request to master after those two branches diverged. This merge ensures that next ⊇ master.
| * ignore extra fields when converting csv filesJohann Klähn2012-10-132-0/+7
| | | | | | | | This fixes bug #736.
| * ignore (some) empty field when converting csvJohann Klähn2012-10-134-0/+24
| | | | | | | | This fixes bug #733 and bug #734.
* | change handling of standard inputJohann Klähn2013-01-172-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For `-f /dev/stdin`, the `pathname` of the parsing context will be empty as for any other streamed input. `instance_t::include_directive` did not work as expected for `-f /dev/stdin` and relative file names. One would expect them to be relative to the current directory rather than `/dev`. This will lead to `While parsing file ""` messages. This could be adjusted to read `While parsing standard input`, but maybe it's not worth the special cases. This commit also fixes bug 788: behaviour of source_context for '-f -'
* | fix ctest rulesJohann Klähn2013-01-171-19/+1
| |
* | Revert "fix bug 788: behaviour of source_context for '-f -'"John Wiegley2013-01-161-12/+0
| | | | | | | | This reverts commit 0a1ff035421d5f97675ad769a7fcdbc68399f3dc.
* | fix bug 788: behaviour of source_context for '-f -'Johann Klähn2013-01-151-0/+12
| | | | | | | | | | | | `session_t::read_data` did not set context.pathname to `/dev/stdin` for the special case `-f -`. I chose to adjust `source_context` too as there is no sensible context if no file name is provided.
* | Merge branch 'next' of github.com:ledger/ledger into nextJohn Wiegley2012-11-263-0/+10
|\ \
| * | Fix crash when accessing the transaction code via post.xact.code using pythonAlexis Hildebrandt2012-11-193-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ledger would abort with the following error message: TypeError: No Python class registered for C++ class boost::optional<std::string> The changes pass a CallPolicy to make_getter when adding the transaction code property for python, so that the correct to_python conversion is made. For details see: http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
* | | Fixed a regression testJohn Wiegley2012-11-121-10/+10
|/ /
* | fix bucket directive (bug 765)Johann Klähn2012-10-231-0/+15
| | | | | | | | | | | | | | | | This was caused by both 'A' and 'bucket' using default_account_directive. This function was still stripping the 'A' directive, so the first character of the account name used with 'bucket' was cut off. Maybe the code for the other directives should be changed accordingly for consistency (put line + 1 in call instead of function).
* | Rounding is different for balance totals vs. postings when using posting costs.Bradley M. Kuhn2012-09-302-0/+30
| | | | | | | | | | | | | | | | | | | | test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both pass, but test/regress/CAE63F5C-c.test does not, because the total line of $6.46 is rounded wrong; it should be $6.45. There seems to be different rounding occurring for totals vs. postings. This seems to be related to Bug #492.
* | Running totals on a report including automated transactions are computed ↵Paolo Capriotti2012-09-301-0/+17
| | | | | | | | | | | | with extra precision, resulting in balances differing from the sum of their components.
* | Always store absolute paths internallyJohn Wiegley2012-08-021-20/+20
|/