Skip to content

Commit 8cdf9ba

Browse files
committed
broaden old Matlab support ~ R2017b
1 parent 3dbb315 commit 8cdf9ba

16 files changed

+17
-16
lines changed

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Matlab >= R2022b can alternatively use "buildtool test" to run the self-tests.
2020
The key limitations to minimum Matlab version are:
2121

2222
* R2017b: fileparts() supports string type. fileparts() is used in many places in the code as it's 5-10x faster than regexp() for filename parsing.
23+
* R2018a: fileattrib() supports string type
2324
* R2019b: function argument validation block "arguments"
2425

2526

private/releaseTestTags.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
end
1111

1212
releasesKnown = [
13+
"R2017b", "R2018a", "R2018b", ...
1314
"R2019a", "R2019b", "R2020a", "R2020b", ...
1415
"R2021a", "R2021b", "R2022a", "R2022b", ...
1516
"R2023a", "R2023b", "R2024a", "R2024b", ...

test/TestAbsolute.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a', 'impure'}) ...
2+
TestTags = {'R2017b', 'impure'}) ...
33
TestAbsolute < matlab.unittest.TestCase
44

55
properties (TestParameter)

test/TestCanonical.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a'}) ...
2+
TestTags = {'R2018a'}) ...
33
TestCanonical < matlab.unittest.TestCase
44

55
properties (TestParameter)

test/TestExists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function test_dirs(tc)
1515
end
1616

1717

18-
methods (Test, TestTags={'R2019a'})
18+
methods (Test, TestTags={'R2018a'})
1919

2020
function test_exists(tc, Ps)
2121
ok = stdlib.exists(Ps{1});

test/TestExpanduser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a', 'impure'}) ...
2+
TestTags = {'R2018b', 'impure'}) ...
33
TestExpanduser < matlab.unittest.TestCase
44

55
properties (TestParameter)

test/TestFilename.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a', 'pure'}) ...
2+
TestTags = {'R2017b', 'pure'}) ...
33
TestFilename < matlab.unittest.TestCase
44

55
properties (TestParameter)

test/TestIni.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a', 'impure'}) ...
2+
TestTags = {'R2017b', 'impure'}) ...
33
TestIni < matlab.unittest.TestCase
44

55

66
methods (Test)
77

88
function test_example(tc)
9-
import matlab.unittest.constraints.IsFile
109

1110
cwd = fileparts(mfilename('fullpath'));
1211
example = cwd + "/example.ini";
1312

14-
tc.assertThat(example, IsFile)
13+
tc.assertThat(example, matlab.unittest.constraints.IsFile)
1514

1615
s = stdlib.ini2struct(example);
1716
tc.verifyClass(s, 'struct')

test/TestIsAbsolute.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a', 'pure'}) ...
2+
TestTags = {'R2017b', 'pure'}) ...
33
TestIsAbsolute < matlab.unittest.TestCase
44

55
properties (TestParameter)

test/TestJoin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019a', 'pure'}) ...
2+
TestTags = {'R2017b', 'pure'}) ...
33
TestJoin < matlab.unittest.TestCase
44

55
properties (TestParameter)

0 commit comments

Comments
 (0)