Skip to content

Commit 23e7217

Browse files
committed
test:is_exe: newer
1 parent d77dccb commit 23e7217

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

test/TestIsExe.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ function pkg_path(tc)
2020
methods(Test, TestTags="impure")
2121

2222
function test_is_exe(tc, p, method)
23-
is_capable(tc, str2func("stdlib." + method + ".is_exe"))
24-
25-
tc.verifyEqual(stdlib.is_exe(p{1}, method), p{2})
23+
try
24+
tc.verifyEqual(stdlib.is_exe(p{1}, method), p{2})
25+
catch e
26+
tc.verifyEqual(e.identifier, 'stdlib:choose_method:NameError', e.message)
27+
end
2628
end
2729

2830

test/is_capable.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ function is_capable(tc, f)
5353

5454
elseif contains(n, ".native.")
5555

56-
if endsWith(n, "is_exe")
57-
tc.assumeFalse(isMATLABReleaseOlderThan('R2025a'))
58-
end
59-
6056
if endsWith(n, "canonical")
6157
tc.assumeFalse(isMATLABReleaseOlderThan('R2024a'))
6258
end

0 commit comments

Comments
 (0)