mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Add another unit test to mch_can_exe.
This commit is contained in:
parent
1fb6612dc0
commit
1468c12fd1
@ -85,6 +85,9 @@ describe 'os_unix function', ->
|
||||
it 'returns false when given a directory', ->
|
||||
eq FALSE, (mch_can_exe 'unit-test-directory')
|
||||
|
||||
it 'returns false when the given file does not exists', ->
|
||||
eq FALSE, (mch_can_exe 'does-not-exist.file')
|
||||
|
||||
it 'returns true when given an executable in the current directory', ->
|
||||
old_dir = lfs.currentdir!
|
||||
lfs.chdir directory
|
||||
|
Loading…
Reference in New Issue
Block a user