aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <jszakmeister@users.noreply.github.com>2017-03-16 08:41:06 -0400
committerGitHub <noreply@github.com>2017-03-16 08:41:06 -0400
commit27e1b2dce459ec9a79d6b81a342447363495f5a0 (patch)
tree039664ff62a5be152f8576b3f12d5a8660e331b8
parent50953f96614ab2ce9790cff726b5a9edf18c2301 (diff)
parent3c8d974f73f2b435d682e3f8752493f8da6e4f1e (diff)
downloadrneovim-27e1b2dce459ec9a79d6b81a342447363495f5a0.tar.gz
rneovim-27e1b2dce459ec9a79d6b81a342447363495f5a0.tar.bz2
rneovim-27e1b2dce459ec9a79d6b81a342447363495f5a0.zip
Merge pull request #6292 from jszakmeister/fix-tempfile-test
unittests: avoid using pattern matching on file names
-rw-r--r--test/unit/tempfile_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/tempfile_spec.lua b/test/unit/tempfile_spec.lua
index 210518fe1f..c05abfd640 100644
--- a/test/unit/tempfile_spec.lua
+++ b/test/unit/tempfile_spec.lua
@@ -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)