Add another unit test to mch_can_exe.

This commit is contained in:
Thomas Wienecke 2014-03-05 14:02:33 +01:00 committed by Thiago de Arruda
parent 1fb6612dc0
commit 1468c12fd1

View File

@ -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