We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8945e7c commit df3c02aCopy full SHA for df3c02a
+stdlib/+fileio/absolute_path.m
@@ -7,7 +7,7 @@
7
% have to expand ~ first (like C++ filesystem::path::absolute)
8
abspath = stdlib.fileio.expanduser(p);
9
10
-if isempty(abspath)
+if isempty(abspath) || abspath == ""
11
return
12
end
13
test/TestFilePure.m
@@ -113,7 +113,7 @@ function test_absolute_path(tc)
113
import matlab.unittest.constraints.StartsWithSubstring
114
115
tc.verifyEmpty(stdlib.absolute_path(string.empty))
116
-tc.verifyEqual(stdlib.absolute_path(""), string(pwd))
+tc.verifyEqual(stdlib.absolute_path(""), "")
117
118
pabs = stdlib.absolute_path('2foo');
119
pabs2 = stdlib.absolute_path('4foo');
0 commit comments