repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
neovim/tests/std/executable_spec.lua
Rawlocal executable = require 'std.executable'
describe('std.executable', function()
it('returns a boolean for available and missing executables', function()
assert.is_true(executable 'nvim')
assert.is_false(executable 'definitely-missing-executable')
end)
it('rejects non-string names', function()
assert.has_error(function() executable(42) end)
end)
end)