1- classdef (SharedTestFixtures = { matlab .unittest .fixtures .PathFixture(fileparts(fileparts(mfilename(' fullpath' ))))}, ...
2- TestTags = {' R2019b' , ' impure' }) ...
1+ classdef (SharedTestFixtures = { matlab .unittest .fixtures .PathFixture(fileparts(fileparts(mfilename(' fullpath' ))))}) ...
32 TestPlatform < matlab .unittest .TestCase
43
54properties
65CI = getenv(' CI' ) == " true" || getenv(' GITHUB_ACTIONS' ) == " true"
76end
87
98
10- methods (Test , TestTags = {' toolbox ' , ' java' })
9+ methods (Test , TestTags = {' R2018a ' , ' java' , ' toolbox ' })
1110function test_all_toolboxes(tc )
11+ tc .assumeFalse(stdlib .matlabOlderThan(' R2018a' ))
1212tc .assumeTrue(stdlib .has_java())
1313tbx = stdlib .allToolboxes();
1414tc .verifyClass(tbx , ' table' )
1515end
1616end
1717
1818
19- methods (Test , TestTags = {' toolbox' })
19+ methods (Test , TestTags = {' R2017b ' , ' toolbox' })
2020
2121function test_toolbox_used(tc )
2222r = fullfile(fileparts(fileparts(mfilename(' fullpath' ))), ' +stdlib' );
@@ -42,21 +42,23 @@ function test_has_parallel_toolbox(tc)
4242end
4343
4444
45- methods (Test )
46-
47- function test_platform_tell(tc )
48- r = stdlib .platform_tell();
49- tc .verifyClass(r , ' char' )
50- tc .verifyNotEmpty(r )
51- end
52-
53-
45+ methods (Test , TestTags = {' R2018a' })
5446function test_perl(tc )
47+ tc .assumeFalse(stdlib .matlabOlderThan(' R2018a' ))
5548tc .verifyNotEmpty(stdlib .perl_exe())
5649tc .verifyNotEmpty(stdlib .perl_version())
5750tc .verifyTrue(stdlib .has_perl(), " Matlab docs indicate that Perl should always be available" )
5851end
52+ end
53+
5954
55+ methods (Test , TestTags = {' R2017b' })
56+
57+ function test_platform_tell(tc )
58+ r = stdlib .platform_tell();
59+ tc .verifyClass(r , ' char' )
60+ tc .verifyNotEmpty(r )
61+ end
6062
6163function test_is_cygwin(tc )
6264tc .verifyFalse(stdlib .is_cygwin())
0 commit comments