aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit/os_unix.moon3
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