Skip to content

Commit d0d04c8

Browse files
committed
proximate: simplify
1 parent 8346bae commit d0d04c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

+stdlib/proximate_to.m

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

1515
rel = stdlib.relative_to(base, other);
1616
if strempty(rel)
17-
rel = fullfile(other);
17+
rel = other;
1818
end
1919

2020

test/TestRelative.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function test_proximate_to(tc, pp)
6060
p = [p, {
6161
{"C:/", "C:/a/b", fullfile("a", "b")}, ...
6262
{"c:/a/b", "c:/a/b", "."}, ...
63-
{"C:/path", "D:/path", ""}, ...
63+
{"C:/path", "D:\path", ""}, ...
6464
{"D:/a/b", "c", ""}}];
6565
% note: on Windows the drive letter should be uppercase!
6666

0 commit comments

Comments
 (0)