@@ -24,36 +24,36 @@ function test_is_admin(tc)
2424end
2525
2626
27- function test_unlink_file (tc )
28- tc .assumeTrue(isfile(fileparts(mfilename(" fullpath" )) + " /../+stdlib/unlink ." + mexext ))
27+ function test_remove_file (tc )
28+ tc .assumeTrue(isfile(fileparts(mfilename(" fullpath" )) + " /../+stdlib/remove ." + mexext ))
2929
3030d = tc .createTemporaryFolder();
3131
3232f = tempname(d );
3333
34- tc .verifyFalse(stdlib .unlink (f ), " should not succeed at unlinking non-existant path" )
34+ tc .verifyFalse(stdlib .remove (f ), " should not succeed at removing non-existant path" )
3535
3636tc .assumeTrue(stdlib .touch(f ))
37- tc .verifyTrue(stdlib .unlink (f ), " failed to unlink file" )
37+ tc .verifyTrue(stdlib .remove (f ), " failed to remove file" )
3838end
3939
4040
41- function test_unlink_empty_dir (tc )
42- tc .assumeTrue(isfile(fileparts(mfilename(" fullpath" )) + " /../+stdlib/unlink ." + mexext ))
41+ function test_remove_empty_dir (tc )
42+ tc .assumeTrue(isfile(fileparts(mfilename(" fullpath" )) + " /../+stdlib/remove ." + mexext ))
4343
4444d = tc .createTemporaryFolder();
4545
46- tc .verifyTrue(stdlib .unlink (d ), " failed to unlink empty directory" )
46+ tc .verifyTrue(stdlib .remove (d ), " failed to remove empty directory" )
4747end
4848
4949
50- function test_unlink_recursive (tc )
51- tc .assumeTrue(isfile(fileparts(mfilename(" fullpath" )) + " /../+stdlib/unlink ." + mexext ))
50+ function test_remove_recursive (tc )
51+ tc .assumeTrue(isfile(fileparts(mfilename(" fullpath" )) + " /../+stdlib/remove ." + mexext ))
5252
5353d = tc .createTemporaryFolder();
5454
5555tc .assumeTrue(stdlib .touch(fullfile(d , " junk.txt" )))
56- tc .verifyFalse(stdlib .unlink (d ), " should not unlink directory recursively" )
56+ tc .verifyFalse(stdlib .remove (d ), " should not remove directory recursively" )
5757end
5858
5959end
0 commit comments