33properties (TestParameter )
44p_is_writable = {{pwd(), true }, {" not-exists" , false }, {" " , false }};
55
6- p_expand = {{" " , " " }, {" ~abc" , " ~abc" }, {" ~" , stdlib.homedir()}, ...
7- {" ~/c" , stdlib .homedir() + " /c" }, {' ~//c' , stdlib .homedir() + " //c" }};
8-
96p_same = {...
107{" " ," " , false }, ...
118{tempname(), tempname(), false }, ...
129{" .." , " ./.." , true }, ...
1310{" .." , pwd() + " /.." , true }}
1411
15- ph = {{0 , ' "stdin"' }, {1 , ' "stdout"' }, {2 , ' "stderr"' }, {fopen(tempname()), " " }}
12+ ph = {{0 , ' "stdin"' }, {1 , ' "stdout"' }, {2 , ' "stderr"' }, {fopen(tempname()), ' ' }}
1613
1714p_file_size = {mfilename(" fullpath" ) + " .m" }
1815end
@@ -32,11 +29,6 @@ function test_is_writable(tc, p_is_writable)
3229end
3330
3431
35- function test_expanduser(tc , p_expand )
36- tc .verifyEqual(stdlib .expanduser(p_expand{1 }), p_expand{2 })
37- end
38-
39-
4032function test_null_file(tc )
4133import matlab .unittest .constraints .IsFile
4234tc .assumeFalse(ispc )
@@ -66,7 +58,7 @@ function test_get_pid(tc)
6658
6759
6860function test_handle2filename(tc , ph )
69- tc .verifyEqual(stdlib .handle2filename(ph{1 }), string( ph{2 }) )
61+ tc .verifyEqual(stdlib .handle2filename(ph{1 }), ph{2 })
7062end
7163
7264end
0 commit comments