mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 09:01:45 +00:00
Merge pull request #6292 from jszakmeister/fix-tempfile-test
unittests: avoid using pattern matching on file names
This commit is contained in:
@@ -62,7 +62,7 @@ describe('tempfile related functions', function()
|
||||
itp('generate file name in Neovim own temp directory', function()
|
||||
local dir = vim_gettempdir()
|
||||
local file = vim_tempname()
|
||||
assert.truthy(file:find('^' .. dir .. '[^/]*$'))
|
||||
eq(string.sub(file, 1, string.len(dir)), dir)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user