Skip to content

Commit ee4feb8

Browse files
committed
test_main: older matlab
1 parent f44fc50 commit ee4feb8

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test_main.m

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@ function test_main(context, sel)
3232
try
3333
suite = testsuite(test_root, 'Tag', rtags);
3434
catch e
35-
if e.identifier == "MATLAB:expectedScalartext"
36-
suite = testsuite(test_root);
35+
switch e.identifier
36+
case {'MATLAB:expectedScalartext', 'MATLAB:expectedScalar'}
37+
suite = testsuite(test_root);
3738

38-
assert(numel(rtags) > 0, "No test tags found for this Matlab release")
39-
ts = HasTag(rtags(1));
40-
if numel(rtags) > 1
41-
for t = rtags(2:end)
42-
ts = ts | HasTag(t);
39+
assert(numel(rtags) > 0, "No test tags found for this Matlab release")
40+
ts = HasTag(rtags(1));
41+
if numel(rtags) > 1
42+
for t = rtags(2:end)
43+
ts = ts | HasTag(t);
44+
end
4345
end
44-
end
45-
sel = sel & ts;
46-
else
46+
sel = sel & ts;
47+
otherwise
4748
rethrow(e)
4849
end
4950
end

0 commit comments

Comments
 (0)