mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51:33 +00:00
test/win: executable(), exepath() #9516
This commit is contained in:
14
test/functional/eval/exepath_spec.lua
Normal file
14
test/functional/eval/exepath_spec.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local eq, clear, call, iswin =
|
||||
helpers.eq, helpers.clear, helpers.call, helpers.iswin
|
||||
|
||||
describe('exepath() (Windows)', function()
|
||||
if not iswin() then return end -- N/A for Unix.
|
||||
|
||||
it('append extension, even if omit extension', function()
|
||||
local filename = 'cmd'
|
||||
local pathext = '.exe'
|
||||
clear({env={PATHEXT=pathext}})
|
||||
eq(call('exepath', filename..pathext), call('exepath', filename))
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user