diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-05 01:09:55 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:45 +0300 |
commit | ffaf7c7521399826d9a32b12a1180bcd162f88be (patch) | |
tree | b1428465d3a0d58a4a030863e862b485681c1e4f /test/helpers.lua | |
parent | cdb1aa3e47cb0ec19d2ae597c1d21b7e892d0d7e (diff) | |
download | rneovim-ffaf7c7521399826d9a32b12a1180bcd162f88be.tar.gz rneovim-ffaf7c7521399826d9a32b12a1180bcd162f88be.tar.bz2 rneovim-ffaf7c7521399826d9a32b12a1180bcd162f88be.zip |
unittests: Add tv_dict_item_{alloc,free} tests
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index e5224349c2..1a86effa1c 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -225,6 +225,19 @@ local function which(exe) end end +local function concat_tables(...) + local ret = {} + for i = 1, select('#', ...) do + local tbl = select(i, ...) + if tbl then + for _, v in ipairs(tbl) do + ret[#ret + 1] = v + end + end + end + return ret +end + return { eq = eq, neq = neq, @@ -238,4 +251,5 @@ return { check_cores = check_cores, hasenv = hasenv, which = which, + concat_tables = concat_tables, } |