File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,26 @@ function test_makedir(tc)
7676tc .assertTrue(isfolder(d ))
7777end
7878
79- function test_which(tc )
79+ function test_which_name(tc )
80+ import stdlib .fileio .which
81+
82+ if ismac
83+ n = " ls" ;
84+ else
85+ n = " matlab" ;
86+ end
87+ %% which: Matlab in environment variable PATH
88+ % MacOS Matlab does not source .zshrc so Matlab is not on internal Matlab PATH
89+ tc .verifyNotEmpty(which(n ))
90+
91+ end
92+
93+ function test_is_exe_which_fullpath(tc )
8094import matlab .unittest .constraints .IsFile
8195import stdlib .fileio .which
8296import stdlib.fileio.is_exe
8397
8498n = " matlab" ;
85- %% which: Matlab in environment variable PATH
86- tc .verifyNotEmpty(which(n ))
8799%% is_exe test
88100p = fullfile(matlabroot , " bin" , n );
89101if ispc
You can’t perform that action at this time.
0 commit comments