test: support upvalues in exec_lua

This commit is contained in:
Lewis Russell
2024-08-11 09:27:48 +01:00
committed by Lewis Russell
parent a19e89022d
commit e5c174421d
34 changed files with 1740 additions and 1362 deletions

View File

@@ -2,16 +2,15 @@ local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local exec_lua = n.exec_lua
describe('glob', function()
before_each(n.clear)
after_each(n.clear)
local match = function(...)
return exec_lua(function(pattern, str)
local match = function(pattern, str)
return n.exec_lua(function()
return require('vim.glob').to_lpeg(pattern):match(str) ~= nil
end, ...)
end)
end
describe('glob matching', function()