mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
test/functional/eval: assert that executable() fixtures are executable
This commit is contained in:
@@ -11,6 +11,10 @@ describe('executable()', function()
|
||||
it('returns 1 for commands in $PATH', function()
|
||||
local exe = iswin() and 'ping' or 'ls'
|
||||
eq(1, call('executable', exe))
|
||||
command('let $PATH = fnamemodify("./test/functional/fixtures/bin", ":p")')
|
||||
eq(1, call('executable', 'null'))
|
||||
eq(1, call('executable', 'true'))
|
||||
eq(1, call('executable', 'false'))
|
||||
end)
|
||||
|
||||
it('fails for invalid values', function()
|
||||
|
Reference in New Issue
Block a user