aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/tricks_spec.lua
Commit message (Collapse)AuthorAge
* unittests: Fix linter errorsZyX2017-03-29
|
* unittests: Add tests for tv_dict_extendZyX2017-03-29
|
* eval: Remove eval_expr() completelyZyX2017-03-29
|
* eval: Split eval.c into smaller filesZyX2017-03-29
|
* unittests: Check core dumps in after_each, like in functestsZyX2017-03-11
|
* unittests: Run all unit tests in their own processesZyX2017-03-11
| | | | | | | | | | | | | | | Used sed -r -i -e '/ helpers =/ s/$/\nlocal itp = helpers.gen_itp(it)/; s/^(\s*)it\(/\1itp(/' test/unit/**/*_spec.lua to alter all tests. Locally they all run fine now. Reasoning: 1. General: state from one test should not affect other tests. 2. Local: travis build is failing with something which may be an output of garbage collector. This should prevent state of the garbage collector from interferring as well.
* eval/encode: Make sure that encoder can encode NULL variablesZyX2016-04-18
Adds two undocumented v: variables: _null_list and _null_dict because I do not know a reproducible way to get such lists (though I think I heard about this) and dictionaries (do not remember hearing about them). NULL strings are obtained using $XXX_UNEXISTENT_VAR_XXX. Fixes crash in json_encode($XXX_UNEXISTENT_VAR_XXX). Other added tests worked fine before this commit.