diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-21 00:00:47 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-27 00:12:22 +0300 |
commit | a3ea05c1e5965ca23b1b926c41b00597e9d0211c (patch) | |
tree | 993d5c805749a617baa15c5f931edeb95c0ec56d /test/helpers.lua | |
parent | 8679feb3cbffd6b175be6a2868e980ca971125f7 (diff) | |
download | rneovim-a3ea05c1e5965ca23b1b926c41b00597e9d0211c.tar.gz rneovim-a3ea05c1e5965ca23b1b926c41b00597e9d0211c.tar.bz2 rneovim-a3ea05c1e5965ca23b1b926c41b00597e9d0211c.zip |
functests: Add some tests
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index e5224349c2..18f47e950b 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -225,6 +225,14 @@ local function which(exe) end end +local function shallowcopy(orig) + local copy = {} + for orig_key, orig_value in pairs(orig) do + copy[orig_key] = orig_value + end + return copy +end + return { eq = eq, neq = neq, @@ -238,4 +246,5 @@ return { check_cores = check_cores, hasenv = hasenv, which = which, + shallowcopy = shallowcopy, } |