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 b514c0aCopy full SHA for b514c0a
+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,8 +39,10 @@ function test_which_absolute(tc, mexe)
39
40
41
tc.assumeThat(r, matlab.unittest.constraints.IsFile)
42
+tc.assumeTrue(stdlib.is_exe(r))
43
-tc.verifyEqual(stdlib.which(mexe), r)
44
+tc.verifyGreaterThan(strlength(stdlib.which(r)), 0, "Expected which(" + r + " ) to find " + r)
45
+tc.verifyGreaterThan(strlength(stdlib.which(mexe)), 0, "Expected which(" + mexe + ") to find " + r)
46
47
48
0 commit comments