mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 05:17:43 +00:00
test: support upvalues in exec_lua
This commit is contained in:
committed by
Lewis Russell
parent
a19e89022d
commit
e5c174421d
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user