mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Add another unit test to mch_can_exe.
This commit is contained in:
committed by
Thiago de Arruda
parent
1fb6612dc0
commit
1468c12fd1
@@ -85,6 +85,9 @@ describe 'os_unix function', ->
|
|||||||
it 'returns false when given a directory', ->
|
it 'returns false when given a directory', ->
|
||||||
eq FALSE, (mch_can_exe 'unit-test-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', ->
|
it 'returns true when given an executable in the current directory', ->
|
||||||
old_dir = lfs.currentdir!
|
old_dir = lfs.currentdir!
|
||||||
lfs.chdir directory
|
lfs.chdir directory
|
||||||
|
|||||||
Reference in New Issue
Block a user