diff options
author | ZyX <kp-pav@yandex.ru> | 2017-11-06 20:15:05 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-11-06 20:15:05 +0300 |
commit | 42959d0e8f9e779ba4983016b24967bf02abb59f (patch) | |
tree | 619b1ebf4628eb1a84ed16dea5815c61667daec0 /test/helpers.lua | |
parent | c85f485aa78352f31421d209176b2ed57b91b86e (diff) | |
download | rneovim-42959d0e8f9e779ba4983016b24967bf02abb59f.tar.gz rneovim-42959d0e8f9e779ba4983016b24967bf02abb59f.tar.bz2 rneovim-42959d0e8f9e779ba4983016b24967bf02abb59f.zip |
unittests: Add tests for vim_str2nr
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index 20fe23821f..16b9818f12 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -310,6 +310,13 @@ local function mergedicts_copy(d1, d2) return ret end +local function updated(d, d2) + for k, v in pairs(d2) do + d[k] = v + end + return d +end + local function concat_tables(...) local ret = {} for i = 1, select('#', ...) do @@ -460,4 +467,5 @@ return { format_luav = format_luav, format_string = format_string, intchar2lua = intchar2lua, + updated = updated, } |