diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-05 14:02:33 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-07 17:30:39 -0300 |
commit | 1468c12fd1b649644eeacd447dbb0865eb0cdb43 (patch) | |
tree | 4d74913e011b09b3619810c979a3769fcfbc8456 | |
parent | 1fb6612dc04ba9408a93df5699c69ec81cf86140 (diff) | |
download | rneovim-1468c12fd1b649644eeacd447dbb0865eb0cdb43.tar.gz rneovim-1468c12fd1b649644eeacd447dbb0865eb0cdb43.tar.bz2 rneovim-1468c12fd1b649644eeacd447dbb0865eb0cdb43.zip |
Add another unit test to mch_can_exe.
-rw-r--r-- | test/unit/os_unix.moon | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/os_unix.moon b/test/unit/os_unix.moon index 35467b2971..ea054ab020 100644 --- a/test/unit/os_unix.moon +++ b/test/unit/os_unix.moon @@ -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 |