Skip to content

Commit 95fbcd5

Browse files
committed
test:canonical: verify backend
1 parent e5c9f1e commit 95fbcd5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/TestCanonical.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ function test_dirs(tc)
2222

2323
methods (Test, TestTags={'R2019b'})
2424
function test_canonical(tc, p)
25-
c = stdlib.canonical(p{1}, false);
25+
[c, b] = stdlib.canonical(p{1}, false);
2626
tc.verifyEqual(c, p{2})
27+
28+
if stdlib.matlabOlderThan('R2024a')
29+
tc.verifyEqual(b, 'legacy')
30+
else
31+
tc.verifyEqual(b, 'native')
32+
end
2733
end
2834

2935
function test_legacy_canonical(tc, p)

0 commit comments

Comments
 (0)