Skip to content

Commit 79d7747

Browse files
committed
test: remove url
1 parent 961c8d0 commit 79d7747

21 files changed

+25
-42
lines changed

test/TestAbsolute.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function test_absolute2arg(tc, p2)
2525
td = stdlib.posix(pwd());
2626
r = td + "/hi";
2727

28-
p = {{"", td}, {"hi", r}, {"./hi", td + "/./hi"}, {"../hi", td + "/../hi"}, {"file:///", ""}};
28+
p = {{"", td}, {"hi", r}, {"./hi", td + "/./hi"}, {"../hi", td + "/../hi"}};
2929
end
3030

3131
function p = init2arg()
3232
td = stdlib.posix(pwd());
3333
r = td + "/hi";
3434

35-
p = {{"", "", td}, {"", "hi", r}, {"hi", "", r}, {"there", "hi", td + "/hi/there"}, {"file:///", "file:///", ""}};
35+
p = {{"", "", td}, {"", "hi", r}, {"hi", "", r}, {"there", "hi", td + "/hi/there"}};
3636
end

test/TestCanonical.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
{"~/", stdlib.homedir()}, ...
99
{"~/..", stdlib.parent(stdlib.homedir())}, ...
1010
{mfilename("fullpath") + ".m/..", stdlib.parent(mfilename("fullpath"))}, ...
11-
{"~/not-exist/a/..", stdlib.homedir() + "/not-exist"}, ...
12-
{"file:///", ""}
11+
{"~/not-exist/a/..", stdlib.homedir() + "/not-exist"}
1312
};
1413
end
1514

test/TestExists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
properties(TestParameter)
44
Ps = {{pwd(), true}, {mfilename("fullpath") + ".m", true}, ...
5-
{"TestFileImpure.m", true} {tempname, false}, {"file:///", false}, ...
5+
{"TestFileImpure.m", true} {tempname, false}, ...
66
{"", false}}
77
% on CI matlabroot can be writable!
88
end

test/TestFileImpure.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
classdef TestFileImpure < matlab.unittest.TestCase
22

33
properties(TestParameter)
4-
p_is_writable = {{pwd(), true}, {"not-exists", false}, {"file:///", false}, {"", false}};
4+
p_is_writable = {{pwd(), true}, {"not-exists", false}, {"", false}};
55

66
p_expand = {{"", ""}, {"~abc", "~abc"}, {"~", stdlib.homedir()}, ...
7-
{"~/c", stdlib.homedir() + "/c"}, {'~/////c', stdlib.homedir() + "/c"}, ...
8-
{"file:///", ""}};
7+
{"~/c", stdlib.homedir() + "/c"}, {'~/////c', stdlib.homedir() + "/c"}};
98

109
p_same = {...
1110
{"","", false}, ...
1211
{tempname, tempname, false}, ...
1312
{"..", "./..", true}, ...
14-
{"..", pwd() + "/..", true}, ...
15-
{"file:///", "file:///", false}}
13+
{"..", pwd() + "/..", true}}
1614

1715
ph = {{0, '"stdin"'}, {1, '"stdout"'}, {2, '"stderr"'}, {fopen(tempname), ""}}
1816

19-
p_file_size = {mfilename("fullpath") + ".m", "", "file:///", pwd()}
17+
p_file_size = {mfilename("fullpath") + ".m", "", pwd()}
2018
end
2119

2220

test/TestFilePure.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ function test_root_name(tc, p)
3030
p = {{"", ""}, ...
3131
{"a/b", ""}, ...
3232
{"/etc", ""}, ...
33-
{"c:/etc", ""}, ...
34-
{"file:///", ""}, ...
33+
{"c:/etc", ""}
3534
};
3635

3736
if ispc

test/TestFilename.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
{"/a/b/c/", ""}, ...
88
{"a/b/c.txt", "c.txt"}, ...
99
{"a/b/c.txt.gz", "c.txt.gz"}, ...
10-
{"file:///users", ""}, ...
1110
};
1211
end
1312

test/TestHash.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
properties (TestParameter)
44
type = {'sha256', 'md5'}
55
hash = {"36c1bbbdfd8d04ef546ffb15b9c0a65767fd1fe9a6135a257847e3a51fb1426c", "d58cfb32e075781ba59082a8b18287f9"}
6-
Pe = {"file:///", "", "/"}
6+
Pe = {"", "/"}
77
end
88

99
methods(TestClassSetup)

test/TestIsAbsolute.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ function test_is_absolute(tc, p)
1414

1515

1616
function p = init_is_absolute()
17-
p = {{"", false}, {"x", false}, {"x:", false}, {"x:/foo", false}, {"/foo", true}, ...
18-
{"file:///", false}};
17+
p = {{"", false}, {"x", false}, {"x:", false}, {"x:/foo", false}, {"/foo", true}};
1918
if ispc
2019
p{4}{2} = true;
2120
p{5}{2} = false;

test/TestIsExe.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ function test_is_exe(tc, p)
2222
end
2323

2424

25-
p = {{"", false}, {tempname, false}, {".", true}, {f, true}, {"file:///", false}};
25+
p = {{"", false}, {tempname, false}, {".", true}, {f, true}};
2626
end

test/TestIsSubdir.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ function test_is_prefix(tc, p_is_prefix)
3434
{"a/b", "a/b/", false}, ...
3535
{"a/b", "a", true}, ...
3636
{"a/.c", "a", true}, ...
37-
{"file:///", "file:///", false}, ...
3837
{"", "", false}, ...
3938
};
4039
% NOTE: ".." in is_subdir (either argument) is ambiguous
4140

4241
if ispc
43-
p{end+1} = {"c:\", "c:/", false};
42+
p{end+1} = {"c:/", "c:/", false};
4443
else
4544
p{end+1} = {"/", "/", false};
4645
end
@@ -54,5 +53,5 @@ function test_is_prefix(tc, p_is_prefix)
5453
p{6}{3} = true;
5554
p{7}{3} = false;
5655
p{8}{3} = false;
57-
p{11}{3} = true;
58-
end
56+
p{10}{3} = true;
57+
end

0 commit comments

Comments
 (0)