Skip to content

Commit 37c123c

Browse files
committed
test: remove unneeded check
1 parent e76a621 commit 37c123c

File tree

9 files changed

+4
-17
lines changed

9 files changed

+4
-17
lines changed

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Matlab R2019b is the minimum required due to use of
1414
[arguments](https://www.mathworks.com/help/matlab/ref/arguments.html)
1515
syntax.
1616
URLs (e.g. https://, s3:// and similar) are treated as not existing.
17-
18-
Self-tests can be run from the matlab-stdlib/ directory:
17+
The self-tests require at least Matlab R2022a and can be run from the matlab-stdlib/ directory.
1918

2019
```matlab
2120
%% Matlab R2023a or newer
2221
buildtool test
22+
```
2323

24-
25-
%% Matlab R2021a or newer
24+
```matlab
25+
%% Matlab R2022a or newer
2626
addpath .
2727
runtests("test")
2828
```

test/TestHDF5.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
methods(TestClassSetup)
1515
function setup_file(tc)
1616

17-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
18-
1917
td = tc.createTemporaryFolder();
2018

2119
A0 = 42.;

test/TestHash.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ function java_required(tc)
1616

1717

1818
function test_hash_text(tc, Ph)
19-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
2019

2120
td = tc.createTemporaryFolder();
2221

test/TestJava.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ function test_is_regular_file(tc)
124124

125125

126126
function test_touch_modtime(tc)
127-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
128127

129128
tf = tc.createTemporaryFolder();
130129

test/TestMex.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function test_is_admin(tc)
2727

2828

2929
function test_unlink_file(tc)
30-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
3130
tc.applyFixture(matlab.unittest.fixtures.CurrentFolderFixture(".."))
3231
tc.assumeEqual(exist("+stdlib/unlink", "file"), 3)
3332

@@ -43,7 +42,6 @@ function test_unlink_file(tc)
4342

4443

4544
function test_unlink_empty_dir(tc)
46-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
4745
tc.applyFixture(matlab.unittest.fixtures.CurrentFolderFixture(".."))
4846
tc.assumeEqual(exist("+stdlib/unlink", "file"), 3)
4947

@@ -54,7 +52,6 @@ function test_unlink_empty_dir(tc)
5452

5553

5654
function test_unlink_recursive(tc)
57-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
5855
tc.applyFixture(matlab.unittest.fixtures.CurrentFolderFixture(".."))
5956
tc.assumeEqual(exist("+stdlib/unlink", "file"), 3)
6057

test/TestNetCDF.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
function setup_file(tc)
1010

11-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
12-
1311
td = tc.createTemporaryFolder();
1412

1513
A0 = 42.;

test/TestPermissions.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ function test_set_permissions(tc)
2727
import matlab.unittest.constraints.StartsWithSubstring
2828
import matlab.unittest.fixtures.CurrentFolderFixture
2929

30-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
31-
3230
tc.applyFixture(CurrentFolderFixture(".."))
3331
% matlab exist() doesn't work for MEX detection with ".." leading path
3432

test/TestSubprocess.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function test_stdin(tc, lang_in)
4444

4545

4646
function test_cwd(tc)
47-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
4847

4948
if ispc
5049
c = ["cmd", "/c", "dir"];

test/TestSymlink.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
methods(TestClassSetup)
1515
function setup_symlink(tc)
16-
tc.assumeFalse(isMATLABReleaseOlderThan("R2022a"))
1716

1817
tc.tempDir = tc.createTemporaryFolder();
1918

0 commit comments

Comments
 (0)