summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #316 from tripun/code_coverageJohn Wiegley2014-08-121-2/+494
|\ | | | | expand unit tests in t_balance.cc
| * Revert "add unit test printing for balance_t" until issue is fixed.tripun2014-08-111-31/+0
| | | | | | | | | | | | Getting different output on system than travis-ci. This reverts commit 272e3cb3799937dcd3c379de56b299a3cbde52ca.
| * add unit test printing for balance_ttripun2014-08-111-0/+31
| |
| * add unit test of Zero for balance_ttripun2014-08-111-0/+26
| |
| * add unit test Truth for balance_ttripun2014-08-111-0/+20
| |
| * add unit test Round for balance_ttripun2014-08-111-0/+50
| |
| * add unit test Floor for balance_ttripun2014-08-111-0/+43
| |
| * add unit test Ceiling for balance_ttripun2014-08-111-0/+43
| |
| * add unit test Absolute for balance_ttripun2014-08-111-0/+25
| |
| * add unit test negation for balance_ttripun2014-08-111-0/+35
| |
| * add unit test for balance divisiontripun2014-08-111-0/+45
| |
| * add test for multiplicationtripun2014-08-111-0/+45
| |
| * edited subraction testtripun2014-08-111-1/+1
| |
| * add Equality unit test for balancetripun2014-08-111-2/+65
| |
| * added boost subtraction unit testtripun2014-08-111-0/+39
| |
| * added balance addition unit testtripun2014-08-111-4/+42
| |
| * add balance Test constructorstripun2014-08-111-2/+22
| |
* | Add --actual-dates teststripun2014-08-121-0/+18
| |
* | Add test for primary-date optiontripun2014-08-121-0/+81
|/
* removing test with reg --lot-prices --equity until issue is fixedtripun2014-08-101-13/+0
|
* add test for --equitytripun2014-08-101-0/+62
|
* Rename test since the equity command is being tested, not the optionMartin Michlmayr2014-08-101-0/+0
|
* Define payees to get rid of trailing whitespaceMartin Michlmayr2014-08-101-10/+10
|
* Fix minor whitespace issuesMartin Michlmayr2014-08-103-7/+7
|
* fixed --rich-data testtripun2014-08-101-6/+6
|
* add test for --datetime-formattripun2014-08-101-0/+22
|
* add test for --time-colontripun2014-08-101-0/+45
|
* add test for --time-reporttripun2014-08-101-0/+44
|
* add test for --immediatetripun2014-08-101-0/+32
|
* add test for alternative of tail, i.e lasttripun2014-08-101-0/+14
|
* add test for --date exprtripun2014-08-101-0/+50
|
* add tests for --detail and --rich-datatripun2014-08-101-0/+32
|
* add alternative for --head , i.e --firsttripun2014-08-101-0/+14
|
* 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
|