summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix handling of edge cases in trim functionMichael Budde2018-01-251-0/+33
| |/ / | | | | | | | | | Fixes #520
* / / [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
|/ / | | | | | | [ci skip]
* | Fix segfault when using --market with --group-byMichael Budde2018-01-041-0/+26
| | | | | | | | | | | | | | | | | | | | | | `changed_value_posts::create_accounts()` reuses the `<Revalued>` account from `display_filter`, but when clearing `changed_value_posts` `create_accounts()` would be called before the account had been recreated by `display_filter_posts`. This results in a segfault when using the --group-by option. I'm not sure if `display_filter_posts` has the same problem but I reordered the calls there too for good measure.
* | Merge pull request #494 from jjlee/fix-totalJohn Wiegley2017-10-262-0/+58
|\ \ | | | | | | Fix bug where .total used in value exprs breaks totals
| * | Fix bug where .total used in value exprs breaks totalsJohn Lee2017-10-262-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Re-initialize (to VOID) totals for the account and its ancestors on adding postings. Otherwise the cache intended for use by recursive calls of C++ function total() in computing family (i.e. account hierarchy) totals is incorrectly retained from one top-level call to the next, causing inconsistent and broken behaviour. * Re-initialize (to false) calculated and gathered. Otherwise we won't e.g. recalculate stale totals for ancestor accounts (e.g. won't recalculate Assets:Savings total if Assets:Savings changes via a posting). Although the value expression total function is used by ledger itself in computing totals, this bug would only appear on use of .total in user-supplied value expressions computed *during parsing* of ledger files, rather than after parsing (I believe ledger only ever calls it for internal purposes after parsing is complete). It is possible this bug also affected other functions than total (perhaps even in circumstances other than analagous to that described in the preceding paragraph). I have not checked that.
* | | Merge pull request #484 from mk12/bug-1182-ptrJohn Wiegley2017-10-262-0/+29
|\ \ \ | |/ / |/| | Fix Bug 1182: Error message for parse failure after '='
| * | Print error message if parsing predicate after '='Mitchell Kember2016-12-202-0/+29
| | |
* | | typo in docsAlexander Pletnev2017-01-271-1/+1
| | | | | | | | | | | | fix test
* | | Merge pull request #477 from thdox/bug-584-550thdox2017-01-161-0/+18
|\ \ \ | | | | | | | | Add regress test for bugs 550 and 584
| * | | Add regress test for bugs 550 and 584thdox2017-01-051-0/+18
| | | |
* | | | Merge pull request #476 from thdox/bug-1055thdox2017-01-161-0/+26
|\ \ \ \ | | | | | | | | | | Add regress test for bug 1055
| * | | | Add regress test for bug 1055thdox2017-01-051-0/+26
| |/ / /
* / / / Add regress test for bug 1132thdox2017-01-051-0/+16
|/ / /
* / / [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
|/ / | | | | | | [ci skip]
* | Don't explicitly reference test file in 1057.testJohn Wiegley2016-11-131-1/+1
| |
* | Update cmd-tags.test for fix for bug #1043Martin Michlmayr2016-11-121-0/+3
| |
* | Add test for --color optionthdox2016-10-271-0/+11
| |
* | Add another test to opt-force-color.testthdox2016-10-271-0/+8
| | | | | | | | | | To verify that no ANSI color codes are printed when the --force-color option is not set.
* | --force-color is now tested in CheckBaselinetests.pythdox2016-10-272-1/+0
| |
* | --force-color does not require anymore --color.thdox2016-10-272-2/+2
| | | | | | | | This was reported as Bug #1109
* | Fix bug 1187: Allow balance assertions with multiple posts to same accountMitchell Kember2016-10-074-0/+105
| |
* | Merge pull request #469 from schmave/win-383John Wiegley2016-10-021-1/+1
|\ \ | | | | | | Fix regress test 383 on Windows
| * | Fix regress test 383 on WindowsEvan Mallory2016-10-021-1/+1
| | | | | | | | | | | | %g is not available in Windows strftime. See documentation at https://msdn.microsoft.com/en-us/library/fe06s4ak.aspx
* | | Merge pull request #468 from Vanav/cygwin_fixJohn Wiegley2016-10-021-1/+1
|\ \ \ | |/ / |/| | Fix build under Cygwin
| * | Fix build under Cygwin.Ivan Vanyushkin2016-09-291-1/+1
| | |
* | | Fix test harness to work with msys2Evan Mallory2016-09-234-4/+36
|/ / | | | | | | | | | | With this change, 97% of the tests pass. See the build on appveyor for more info: https://ci.appveyor.com/project/Evan/ledger/build/build-49 I'll follow up with another PR to fix some of the remaining broken tests
* | Fix build under msys32; add Appveyor continuous buildEvan Mallory2016-09-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * Appveyor is a continuous integration platform for Windows that is free for open source projects. See latest test build here: https://ci.appveyor.com/project/Evan/ledger/build/artifacts * Changed WIN32 to _WIN32 because this article http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system claims that it is defined by the greatest number of compilers. * Modified HAVE_ISATTY and other system defines so that system.hh compiles when cmake fails to find the relevant function. * Add missing include in test/unit/t_value.cc Almost all tests fail when you run them on msys32. I will address that in a future PR.
* | Fix Bug 1147: Check balance assertions against the amount AFTERMitchell Kember2016-03-224-3/+25
| |
* | Merge pull request #449 from ppickfor/nextJohn Wiegley2016-03-141-0/+29
|\ \ | | | | | | Use interval start date (period from/since) to initialize first period.
| * | Periods should be initialized from from/since clause rather than earliest ↵Peter Pickford2016-03-091-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | transaction date Bug 1159 Use interval start date (period from/since) to initialize first period. This allows the offset of a period start to be specified -p 'every 12 months from 2000-04-01' will have periods yyyy-04-01 to yyyy-03-31 .... If no from/since is specified for the period the first transaction date reported is used to initialize the period as before. added test case regress/1159.test
* | | days - do not stabalize periods spacified in daysPeter Pickford2016-03-135-0/+532
|/ / | | | | | | | | | | | | | | weeks - calculate start date for finding period using remainer 400/periodlength to reduce number of iterations (perhaps this ought to follow the same conventio as years months and quarters) add sample period command tests add add day period tests for forecasts and budgets add week period tests for forecasts and budgets - these do not change
* | Fix test suite failureMartin Michlmayr2016-02-161-1/+1
| | | | | | | | | | I'm sure I used $FILE for the final version but I must have committed an old version.
* | Increase maximum length for regexMartin Michlmayr2016-02-151-0/+28
| | | | | | | | Fixes bug #981
* | [python] Remove double quotes from unicode valuesAlexis Hildebrandt2016-01-112-0/+17
|/ | | | | When converting a ledger.Value to unicode the Python API added double quotes around it.
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Always use plurar Expenses: for consistencyMartin Michlmayr2015-12-142-4/+4
|
* [tests] Fix empty testfile checkAlexis Hildebrandt2015-10-271-3/+4
|
* [tests] Remove compiler warnings for unit testsAlexis Hildebrandt2015-09-151-1/+1
| | | | | | warning: equality comparison result unused [-Wunused-comparison] BOOST_CHECK_THROW(v8 == v10, value_error); ~~~^~~~~~
* Rename feat-fixated-prices_2.test to dir-fixed.testthdox2015-08-081-0/+0
| | | | For consistency as this is a directive.
* [tests] Fix MathTest failures on Mac OS XAlexis Hildebrandt2015-08-081-15/+12
| | | | due to timezone settings.
* [tests] Set timezone for running testsAlexis Hildebrandt2015-08-073-2/+11
| | | | so that the tests run with a consistent environment.
* Merge pull request #424 from thdox/bug-1057John Wiegley2015-08-041-0/+11
|\ | | | | Add regression test file for bug #1057
| * Modification to help fix issue when compiling with travisthdox2015-07-311-1/+1
| | | | | | | | | | -(("/home/travis/build/ledger/ledger/test/regress/1057.test" 1 (21308 34912 0) nil "www.amazon.fr" +(("/home/travis/build/ledger/ledger/test/regress/1057.test" 1 (21308 42112 0) nil "www.amazon.fr"
| * regression test file for bug 1057thdox2015-07-311-0/+11
| |
* | [tests] Ignore --revalued-total in baseline testsAlexis Hildebrandt2015-08-051-0/+1
| |
* | Merge remote-tracking branch 'origin/master' into nextJohn Wiegley2015-08-042-1/+715
|\ \
| * \ Merge pull request #317 from tripun/code_coverageJohn Wiegley2015-08-042-1/+715
| |\ \ | | | | | | | | Add some unit tests for value_t
| | * | fix minor issuestripun2014-08-181-5/+8
| | | |
| | * | add additional tests for sequence_t and fix the old onestripun2014-08-181-22/+50
| | | |
| | * | add test for sequenc_t in value_ttripun2014-08-181-0/+32
| | | |