diff --git a/test/TestFileImpure.m b/test/TestFileImpure.m index d13d802..14c7d93 100644 --- a/test/TestFileImpure.m +++ b/test/TestFileImpure.m @@ -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}, ... @@ -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