summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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-1316-25/+25
| | | | Fix for bug #867
* Add test case or new payee uuid featureMartin Michlmayr2014-05-131-0/+10
|
* 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-136-5/+34
| | | | Fixes bug #383
* Add another test case for bug #999Martin Michlmayr2014-05-122-0/+22
|
* Add more --pivot testsMartin Michlmayr2014-05-111-0/+16
|
* Add tests for the --pivot optionMartin Michlmayr2014-05-111-0/+132
|
* Use the POST_COST_VIRTUAL flag when exchange commoditiesJohn Wiegley2014-05-081-0/+6
| | | | Fixes #999
* Temporarily disable the DocTestsJohn Wiegley2014-04-171-11/+12
|
* Correct one of the baseline testsJohn Wiegley2014-04-141-1/+1
|
* Apply any outstanding deferred postings at the end of parsingJohn Wiegley2014-04-141-0/+5
|
* Add the concept of "deferred postings"John Wiegley2014-04-131-0/+55
| | | | | This is pretty much exclusively for allowing one to use balance assertions with replicated transactions across multiple files.
* Added support for validation tests to DocTest.py (input:validate andPeter Feigl2014-03-041-11/+37
| | | | | | | | | | | | | | command:validate) It is now possible to use @smallexample @c input:validate (and command:validate) to specify that an example should just be read by ledger (and checked for errors) or that a ledger command should be executed (with default input -f sample.dat, if none is specified). These annotations have been added into ledger3.texi where appropriate. Running the ledger3.texi test now takes a second or two, but a lot of the @smallexamples are now automatically tested.
* Adding option --recursive-aliases, adding documentation to man-page and manualPeter Feigl2014-02-262-26/+20
|
* Adding tests for recursive aliasesPeter Feigl2014-02-262-0/+43
|
* DocTests: Allow inline input to be used with different example commandsAlexis Hildebrandt2014-02-191-26/+47
|
* DocTests: Allow multiple example inputs Alexis Hildebrandt2014-02-191-0/+5
| | | | to be used as single ledger data for an example command
* 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.
* Add proper argument parsing to DocTests.pyAlexis Hildebrandt2014-02-092-21/+37
|
* Print summary list of failed doc tests if anyAlexis Hildebrandt2014-02-091-3/+6
|
* Add support to check documentation examples with inline dataAlexis Hildebrandt2014-02-071-9/+36
|
* Check examples in documentation when running testsAlexis Hildebrandt2014-02-072-0/+151
| | | | | The DocTests.py script will parse a given texinfo file for specially marked examples, run the ledger command from the example, and check the result against the example output from the documentation.
* build shared library/python module, clean up CMakeJohann Klähn2014-02-011-1/+1
| | | | | libledger will now be built as a shared library. You can 'import ledger' from python IFF you copy libledger.so to ledger.so or create a symlink.
* Corrected discrepancies between documentation and drewr3.dat regarding apply ↵Craig Earls2013-09-071-11/+0
| | | | and bucket
* Disable three tests preventing Jenkins from succeedingJohn Wiegley2013-06-193-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).
* Revert "Fix tests when running under Jenkins"John Wiegley2013-06-081-1/+1
| | | | This reverts commit 7183dabc84362a745bf0381cd1cceb303338565f.
* Fix tests when running under JenkinsJohn Wiegley2013-06-081-1/+1
|
* Fix test/input/drewr3.datJohn Wiegley2013-05-231-8/+8
|
* 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
|
* Initial commit of ledger-mode documentation and demo fileCraig Earls2013-02-261-0/+63
|
* Divorces 25A099C9 from the actual amount.h source fileCraig Earls2013-01-302-21/+814
| | | | | | | 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
* Fixes bug 514. accounts and commodities output now sortsCraig Earls2013-01-293-8/+8
| | | | updated tests included.
* Merge branch 'master' into nextJohann Klähn2013-01-187-1/+32
|\ | | | | | | | | | | 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.
| * update baseline test for convert commandJohann Klähn2012-10-131-1/+1
| |
| * 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 -'
* | allow -f /dev/stdin in test runnerJohann Klähn2013-01-171-1/+1
| |
* | fix ctest rulesJohann Klähn2013-01-172-20/+2
| |
* | Revert "fix bug 788: behaviour of source_context for '-f -'"John Wiegley2013-01-161-12/+0
| | | | | | | | This reverts commit 0a1ff035421d5f97675ad769a7fcdbc68399f3dc.
* | fix bug 748: option aliases not recognizedJohann Klähn2013-01-151-1/+1
| |
* | 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.
* | add unit tests for amount_t→floor/ceilJohann Klähn2013-01-151-0/+54
| |