aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/helpers.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-11-04 19:33:36 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:08:06 +0300
commite5edf07ec44f8d147d7482cae2997be62c30373f (patch)
tree2f296ffb3eef85155c26baac37ff518df952a8b2 /test/unit/eval/helpers.lua
parentb3672ae2fced4715963442d2e19048f8fadbe0b8 (diff)
downloadrneovim-e5edf07ec44f8d147d7482cae2997be62c30373f.tar.gz
rneovim-e5edf07ec44f8d147d7482cae2997be62c30373f.tar.bz2
rneovim-e5edf07ec44f8d147d7482cae2997be62c30373f.zip
unittests: Add tests for tv_list_find*() functions
Additional modifications: - More `const` qualifiers in tested functions. - `tv_list_find_str()` second argument is more in-line with other `tv_list_find*()` functions.
Diffstat (limited to 'test/unit/eval/helpers.lua')
-rw-r--r--test/unit/eval/helpers.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/eval/helpers.lua b/test/unit/eval/helpers.lua
index eea5cc8880..cd85b143d9 100644
--- a/test/unit/eval/helpers.lua
+++ b/test/unit/eval/helpers.lua
@@ -405,7 +405,13 @@ local alloc_logging_helpers = {
freed = function(p) return {func='free', args={type(p) == 'table' and p or void(p)}} end,
}
+local function int(n)
+ return {[type_key]=int_type, value=n}
+end
+
return {
+ int=int,
+
null_string=null_string,
null_list=null_list,
null_dict=null_dict,