We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4260434 commit e94d4c1Copy full SHA for e94d4c1
+stdlib/which.m
@@ -27,7 +27,7 @@
27
return
28
end
29
30
-% relative directory component, but path was not a file
+% relative directory component, but path was not an executable file
31
if ~strcmp(stdlib.filename(cmd), cmd)
32
33
test/TestWhich.m
@@ -39,7 +39,9 @@ function test_which_absolute(tc, mexe)
39
40
41
tc.assumeThat(r, matlab.unittest.constraints.IsFile)
42
+tc.assumeTrue(stdlib.is_exe(r))
43
44
+tc.verifyEqual(stdlib.which(r), r)
45
tc.verifyEqual(stdlib.which(mexe), r)
46
47
0 commit comments