mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 04:28:33 +00:00
16 lines
398 B
Lua
16 lines
398 B
Lua
local t = require('test.functional.testutil')()
|
|
local clear = t.clear
|
|
local eq, eval = t.eq, t.eval
|
|
|
|
describe('glob2regpat()', function()
|
|
before_each(clear)
|
|
|
|
it('returns ^$ for empty input', function()
|
|
eq('^$', eval("glob2regpat('')"))
|
|
end)
|
|
it('handles valid input', function()
|
|
eq('^foo\\.', eval("glob2regpat('foo.*')"))
|
|
eq('\\.vim$', eval("glob2regpat('*.vim')"))
|
|
end)
|
|
end)
|