Skip to content

Commit 31f7271

Browse files
committed
test lint
1 parent 2b985f3 commit 31f7271

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/TestFileImpure.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
properties(TestParameter)
88
p_exists = {{pwd(), true}, {mfilename("fullpath") + ".m", true}, {"TestFileImpure.m", true} {tempname, false}}
99
% on CI matlabroot can be writable!
10-
in_is_write = {pwd(), "not-exists"};
11-
ref_is_write = {true, false}
10+
11+
p_is_writable = {{pwd(), true}, {"not-exists", false}};
12+
1213
p_expand
14+
1315
p_same = {...
1416
{"","", false}, ...
1517
{tempname, tempname, false}, ...
@@ -65,8 +67,8 @@ function test_is_readable(tc, p_exists)
6567
end
6668

6769

68-
function test_is_writable(tc, in_is_write, ref_is_write)
69-
tc.verifyEqual(stdlib.is_writable(in_is_write), ref_is_write)
70+
function test_is_writable(tc, p_is_writable)
71+
tc.verifyEqual(stdlib.is_writable(p_is_writable{1}), p_is_writable{2})
7072
end
7173

7274

0 commit comments

Comments
 (0)