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)
76
76
tc .assertTrue(isfolder(d ))
77
77
end
78
78
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 )
80
94
import matlab .unittest .constraints .IsFile
81
95
import stdlib .fileio .which
82
96
import stdlib.fileio.is_exe
83
97
84
98
n = " matlab" ;
85
- %% which: Matlab in environment variable PATH
86
- tc .verifyNotEmpty(which(n ))
87
99
%% is_exe test
88
100
p = fullfile(matlabroot , " bin" , n );
89
101
if ispc
You can’t perform that action at this time.
0 commit comments