Skip to content

Commit ca2a4f4

Browse files
committed
test/publish better specs
1 parent b7f9e56 commit ca2a4f4

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- "**.m"
88
- ".github/workflows/publish.yml"
99
- "!scripts/**"
10+
- "!example/**"
11+
- "!test/**"
1012

1113
# Allows you to run this workflow manually from the Actions tab
1214
workflow_dispatch:

test/TestCanonical.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ function test_canonical(tc, p)
2626
tc.verifyEqual(c, p{2})
2727

2828
if stdlib.matlabOlderThan('R2024a')
29-
tc.verifyEqual(b, 'legacy')
29+
tc.assertEqual(b, 'legacy')
3030
else
31-
tc.verifyEqual(b, 'native')
31+
tc.assertEqual(b, 'native')
3232
end
3333
end
3434

test/TestPermissions.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function test_get_permissions(tc, Ps)
2727
tc.verifyEmpty(p)
2828
else
2929
if isMATLABReleaseOlderThan('R2025a')
30-
tc.verifyEqual(b, 'legacy')
30+
tc.assertEqual(b, 'legacy')
3131
else
32-
tc.verifyEqual(b, 'native')
32+
tc.assertEqual(b, 'native')
3333
end
3434

3535
tc.verifyThat(p, StartsWithSubstring("r"))
@@ -68,9 +68,9 @@ function test_set_permissions_nowrite(tc)
6868
[p, b] = stdlib.get_permissions(nw);
6969

7070
if isMATLABReleaseOlderThan('R2025a')
71-
tc.verifyEqual(b, 'legacy')
71+
tc.assertEqual(b, 'legacy')
7272
else
73-
tc.verifyEqual(b, 'native')
73+
tc.assertEqual(b, 'native')
7474
end
7575

7676
if ~ispc() || b ~= "legacy"

0 commit comments

Comments
 (0)