diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-03 22:51:29 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-01-03 22:51:29 +0300 |
commit | 136b382e64390bf3129a7cd127b7704c983ec300 (patch) | |
tree | e2d352e1236e6ecb82f6c70478ecd74056f1bc21 /test/unit/helpers.lua | |
parent | efc624c2fe029a4ab494672c43366e8c57c19108 (diff) | |
download | rneovim-136b382e64390bf3129a7cd127b7704c983ec300.tar.gz rneovim-136b382e64390bf3129a7cd127b7704c983ec300.tar.bz2 rneovim-136b382e64390bf3129a7cd127b7704c983ec300.zip |
tests: Add tests for partials dumping
Also fixed dumping of partials by encode_vim_to_object and added code which is
able to work with partials and dictionaries to test/unit/eval/helpers.lua
(mostly copied from #5119, except for partials handling).
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 3564f76442..9025c64570 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -136,7 +136,7 @@ end local cstr = ffi.typeof('char[?]') local function to_cstr(string) - return cstr((string.len(string)) + 1, string) + return cstr(#string + 1, string) end -- initialize some global variables, this is still necessary to unit test |