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 97942c0 commit 5926799Copy full SHA for 5926799
+stdlib/makedir.m
@@ -10,11 +10,15 @@ function makedir(direc)
10
%% to avoid confusing making ./~/mydir
11
direc = stdlib.expanduser(direc);
12
13
-if ~stdlib.strempty(direc) && ~isfolder(direc)
14
- [~] = mkdir(direc);
+if ~stdlib.strempty(direc)
+ [s, ~] = mkdir(direc);
15
end
16
17
-ok = isfolder(direc);
+ok = s == 1;
18
+
19
+if ~stdlib.matlabOlderThan('R2017b')
20
+ ok = ok && isfolder(direc);
21
+end
22
23
if nargout == 0
24
assert(ok, 'Failed to create directory: %s', direc)
+stdlib/which.m
@@ -61,7 +61,7 @@
61
else
62
e = stdlib.append(p, '/', cmd);
63
64
- if isfile(e) && stdlib.is_exe(e)
+ if stdlib.is_exe(e)
65
if find_all
66
exe(end+1) = e; %#ok<AGROW>
67
test/TestExpanduser.m
@@ -1,5 +1,5 @@
1
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2
- TestTags = {'R2017b', 'impure'}) ...
+ TestTags = {'R2017a', 'impure'}) ...
3
TestExpanduser < matlab.unittest.TestCase
4
5
properties (TestParameter)
test/TestFileImpure.m
TestFileImpure < matlab.unittest.TestCase
test/TestSuffix.m
@@ -1,13 +1,13 @@
- TestTags = {'R2017b', 'pure'}) ...
+ TestTags = {'R2017a', 'pure'}) ...
TestSuffix < matlab.unittest.TestCase
6
-p = {{"", ""}, {"/a/b/c", ""}, ...
7
- {"/a/b/c/", ""}, {"a/b/c.txt", ".txt"}, ...
8
- {"a/a.b/hi.txt", ".txt"}, ...
9
- {"a/a.b/matlab", ""}, ...
- {"a/b/c.txt.gz", ".gz"}, ...
+p = {{'', ''}, {'/a/b/c', ''}, ...
+ {'/a/b/c/', ''}, {'a/b/c.txt', '.txt'}, ...
+ {'a/a.b/hi.txt', '.txt'}, ...
+ {'a/a.b/matlab', ''}, ...
+ {'a/b/c.txt.gz', '.gz'}, ...
{'.stat', ''}, ...
{'a/.stat', ''}, ...
{'.stat.txt', '.txt'}}
@@ -23,6 +23,11 @@ function test_suffix(tc, p)
tc.verifyEqual(r, p{2})
25
26
27
28
+ tc.verifyEqual(stdlib.suffix(string(p{1})), string(p{2}))
29
30
31
32
33
test/TestSys.m
- TestTags = {'R2017b'}) ...
+ TestTags = {'R2017a'}) ...
TestSys < matlab.unittest.TestCase
test/TestTime.m
TestTime < matlab.unittest.TestCase
test/TestVersion.m
TestVersion < matlab.unittest.TestCase
0 commit comments