mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
unittests: Run vim_str2nr tests with GC enabled
This commit is contained in:
parent
1ffa4e5047
commit
05a3c12118
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user