Merge pull request #6292 from jszakmeister/fix-tempfile-test

unittests: avoid using pattern matching on file names
This commit is contained in:
John Szakmeister
2017-03-16 08:41:06 -04:00
committed by GitHub

View File

@@ -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)