|
17 | 17 | sub_is_subdir |
18 | 18 | ref_is_subdir |
19 | 19 |
|
20 | | -in_parent = {"", ".", "..", "../..", "a/", "a/b", "a/b/", "ab/.parent", "ab/.parent.txt", "a/b/../.parent.txt", "a/////b////c"} |
21 | | -ref_parent = {".", ".", ".", "..", ".", "a", "a", "ab", "ab", "a/b/..", "a/b"} |
| 20 | +in_parent |
| 21 | +ref_parent |
22 | 22 |
|
23 | 23 | in_suffix = {"", "/foo/bar/baz", "/foo/bar/baz/", "foo/bar/baz.txt", "foo/bar/baz.txt.gz", ".stat", ".stat.txt"} |
24 | 24 | ref_suffix = {"", "", "", ".txt", ".gz", ".stat", ".txt"} |
|
37 | 37 | end |
38 | 38 |
|
39 | 39 | methods (TestParameterDefinition, Static) |
40 | | -function [base_relative_to, other_relative_to, ref_relative_to, ref_proximate_to, in_root, ref_root] = init_relative_to(classToTest) %#ok<INUSD> |
| 40 | +function [base_relative_to, other_relative_to, ref_relative_to, ref_proximate_to, in_root, ref_root, in_parent, ref_parent] = init_relative_to(classToTest) %#ok<INUSD> |
41 | 41 |
|
42 | 42 | in_root = {"", "a/b", "./a/b", "../a/b", "/etc", "c:/etc"}; |
43 | 43 | ref_root = {"", "", "", "", "/", ""}; |
44 | 44 |
|
| 45 | +in_parent = {"", ".", "..", "../..", "a/", "a/b", "a/b/", "ab/.parent", "ab/.parent.txt", "a/b/../.parent.txt", "a/////b////c", "c:/", "c:\", "c:/a/b", "c:\a/b"}; |
| 46 | +ref_parent = {".", ".", ".", "..", ".", "a", "a", "ab", "ab", "a/b/..", "a/b", ".", ".", "c:/a", "c:\a"}; |
| 47 | + |
45 | 48 | if ispc |
46 | 49 |
|
47 | 50 | base_relative_to = {'', 'Hello', 'Hello', ... |
|
55 | 58 | ref_proximate_to = ref_relative_to; |
56 | 59 | ref_proximate_to{end} = other_relative_to{end}; |
57 | 60 |
|
| 61 | +ref_root{12} = "c:/"; |
| 62 | +ref_root{13} = "c:/"; |
| 63 | +ref_root{14} = "c:/a"; |
| 64 | +ref_root{15} = "c:/a"; |
| 65 | + |
58 | 66 | ref_root{5} = ""; |
59 | 67 | ref_root{6} = "c:/"; |
60 | 68 |
|
|
0 commit comments