Skip to content

Commit 6ba8677

Browse files
committed
absolute: no posix
1 parent 86de75c commit 6ba8677

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

+stdlib/absolute.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
if expand_tilde
2727
c = stdlib.expanduser(p);
2828
else
29-
c = stdlib.posix(p);
29+
c = p;
3030
end
3131

3232
if stdlib.is_absolute(c)
@@ -45,8 +45,6 @@
4545
b = strcat(pwd(), '/', b);
4646
end
4747

48-
b = stdlib.posix(b);
49-
5048
if strlength(c) == 0
5149
c = b;
5250
else
@@ -60,5 +58,5 @@
6058
end
6159

6260

63-
%!assert(absolute('', '', false), posix(pwd))
64-
%!assert(absolute('a/b', '', false), posix(strcat(pwd(), '/a/b')))
61+
%!assert(absolute('', '', false), pwd)
62+
%!assert(absolute('a/b', '', false), strcat(pwd(), '/a/b'))

test/TestAbsolute.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
methods(TestClassSetup)
1414
function set_cwd(tc)
1515
import matlab.unittest.fixtures.CurrentFolderFixture
16-
tc.td = stdlib.posix(tc.createTemporaryFolder());
16+
tc.td = tc.createTemporaryFolder();
1717
tc.applyFixture(CurrentFolderFixture(tc.td))
1818
end
1919
end

0 commit comments

Comments
 (0)