From 1468c12fd1b649644eeacd447dbb0865eb0cdb43 Mon Sep 17 00:00:00 2001 From: Thomas Wienecke Date: Wed, 5 Mar 2014 14:02:33 +0100 Subject: Add another unit test to mch_can_exe. --- test/unit/os_unix.moon | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/unit/os_unix.moon') 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 -- cgit