diff options
author | ZyX <kp-pav@yandex.ru> | 2017-11-19 23:36:40 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-11-19 23:36:40 +0300 |
commit | 05a3c12118a6dae0ac8f3603f9ee4d9fd9450cce (patch) | |
tree | ba9c379ca070a53007e7a241bd77530152ec2288 | |
parent | 1ffa4e50477eb8a95c7097973c4d13d97551d784 (diff) | |
download | rneovim-05a3c12118a6dae0ac8f3603f9ee4d9fd9450cce.tar.gz rneovim-05a3c12118a6dae0ac8f3603f9ee4d9fd9450cce.tar.bz2 rneovim-05a3c12118a6dae0ac8f3603f9ee4d9fd9450cce.zip |
unittests: Run vim_str2nr tests with GC enabled
-rw-r--r-- | test/unit/charset/vim_str2nr_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/charset/vim_str2nr_spec.lua b/test/unit/charset/vim_str2nr_spec.lua index 1a0a000abb..394934c339 100644 --- a/test/unit/charset/vim_str2nr_spec.lua +++ b/test/unit/charset/vim_str2nr_spec.lua @@ -56,6 +56,12 @@ local function test_vim_str2nr(s, what, exp, maxlen) end end +local _itp = itp +itp = function(...) + collectgarbage('restart') + _itp(...) +end + describe('vim_str2nr()', function() itp('works fine when it has nothing to do', function() test_vim_str2nr('', 0, {len = 0, num = 0, unum = 0, pre = 0}, 0) |