unittests: Run vim_str2nr tests with GC enabled

This commit is contained in:
ZyX 2017-11-19 23:36:40 +03:00
parent 1ffa4e5047
commit 05a3c12118

View File

@ -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)