summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* added test for alternatives of --gain , i.e --change and -Gtripun2014-08-101-1/+10
|
* add test for --dctripun2014-08-101-0/+22
|
* Add a regression test for bug #712Martin Michlmayr2014-07-142-0/+22
|
* Add regression tests for bug #713Martin Michlmayr2014-07-142-0/+88
|
* Regenerate tests for fix for bug #713Martin Michlmayr2014-07-145-1799/+639
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Update tests for fix for bug #713Martin Michlmayr2014-07-146-42/+37
| | | | | | | 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
* Fix query string for select accountMartin Michlmayr2014-05-301-16/+16
| | | | | | | A wrong query string was generated by "select account": one ansify_if() too much was listed and justify() was called with the wrong parameters. Bug fix for #744
* 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
* Update line numbersMartin Michlmayr2014-05-262-3/+3
|
* Add test case to test for invalid option embedded in journalMartin Michlmayr2014-05-261-0/+11
|
* Fix typo in filenameMartin Michlmayr2014-05-262-2/+2
|
* Remove unnecessary command directives from test casesMartin Michlmayr2014-05-262-4/+0
| | | | | These are not necessary and are currently not effective anyway (see bug #1045)
* Add test case for tags commandMartin Michlmayr2014-05-191-0/+55
|
* 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)
* Cosmetic change - format code consistentlyMartin Michlmayr2014-05-182-6/+6
| | | | | Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
* Add test case for balance assertion that's offMartin Michlmayr2014-05-181-0/+18
|
* Add a test case for aliases defined in account directivesMartin Michlmayr2014-05-171-0/+9
|
* Renamed test for --recursive-aliases option for consistencyMartin Michlmayr2014-05-171-0/+0
|
* Add test case for --no-aliases optionMartin Michlmayr2014-05-171-0/+20
|
* 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-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.