88end
99
1010
11- methods (Test , TestTags = {' R2017b ' })
11+ methods (Test , TestTags = {' R2017a ' })
1212
1313function test_which_name(tc )
1414
@@ -27,7 +27,6 @@ function test_which_name(tc)
2727for n = names
2828 exe = stdlib .which(n );
2929 tc .verifyNotEmpty(exe , " Executable not found: " + n )
30- tc .verifyTrue(isfile(exe ), " Executable is not a file: " + n )
3130 tc .verifyTrue(stdlib .is_exe(exe ), " Executable is not executable: " + n )
3231end
3332
@@ -41,7 +40,6 @@ function test_which_absolute(tc, mexe)
4140 r = [r , ' .exe' ];
4241end
4342
44- tc .assumeTrue(isfile(r ))
4543tc .assumeTrue(stdlib .is_exe(r ))
4644
4745tc .verifyGreaterThan(strlength(stdlib .which(r )), 0 , " Expected which(" + r + " ) to find " + r )
@@ -50,7 +48,7 @@ function test_which_absolute(tc, mexe)
5048
5149
5250function test_which_onepath(tc )
53- tc .verifyNotEmpty(stdlib .which(" matlab" , fullfile(matlabroot , ' bin' )), ...
51+ tc .verifyNotEmpty(stdlib .which(' matlab' , fullfile(matlabroot , ' bin' )), ...
5452 " Matlab not found by which() given specific path=" )
5553end
5654
@@ -59,7 +57,7 @@ function test_which_multipath(tc)
5957paths = split(string(getenv(' PATH' )), pathsep );
6058paths(end + 1 ) = fullfile(matlabroot , ' bin' );
6159
62- tc .verifyNotEmpty(stdlib .which(" matlab" , paths ), " Matlab not found by which()" )
60+ tc .verifyNotEmpty(stdlib .which(' matlab' , paths ), " Matlab not found by which()" )
6361end
6462
6563end
0 commit comments