Skip to content

Commit

Permalink
test lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 9, 2024
1 parent 2b985f3 commit 31f7271
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/TestFileImpure.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
properties(TestParameter)
p_exists = {{pwd(), true}, {mfilename("fullpath") + ".m", true}, {"TestFileImpure.m", true} {tempname, false}}
% on CI matlabroot can be writable!
in_is_write = {pwd(), "not-exists"};
ref_is_write = {true, false}

p_is_writable = {{pwd(), true}, {"not-exists", false}};

p_expand

p_same = {...
{"","", false}, ...
{tempname, tempname, false}, ...
Expand Down Expand Up @@ -65,8 +67,8 @@ function test_is_readable(tc, p_exists)
end


function test_is_writable(tc, in_is_write, ref_is_write)
tc.verifyEqual(stdlib.is_writable(in_is_write), ref_is_write)
function test_is_writable(tc, p_is_writable)
tc.verifyEqual(stdlib.is_writable(p_is_writable{1}), p_is_writable{2})
end


Expand Down

0 comments on commit 31f7271

Please sign in to comment.