1
- classdef (SharedTestFixtures = { matlab .unittest .fixtures .PathFixture(fileparts(fileparts(mfilename(' fullpath' ))))}, ...
2
- TestTags = {' R2019b' }) ...
1
+ classdef (SharedTestFixtures = { matlab .unittest .fixtures .PathFixture(fileparts(fileparts(mfilename(' fullpath' ))))}) ...
3
2
TestLang < matlab .unittest .TestCase
4
3
5
4
6
- methods (Test , TestTags = {' python' })
5
+ methods (Test , TestTags = {' R2020b ' , ' python' })
7
6
8
7
function test_has_python(tc )
9
8
tc .assumeTrue(stdlib .has_python())
@@ -13,26 +12,29 @@ function test_has_python(tc)
13
12
14
13
function test_python_home(tc )
15
14
tc .assumeTrue(stdlib .has_python(), " Python not available" )
16
- tc .verifyNotEmpty(stdlib .python_home())
15
+
16
+ r = stdlib .python_home();
17
+ tc .verifyNotEmpty(r )
18
+ tc .verifyClass(r , ' string' )
17
19
end
18
20
19
21
end
20
22
21
23
22
- methods (Test , TestTags = {' dotnet' })
24
+ methods (Test , TestTags = {' R2022b ' , ' dotnet' })
23
25
24
26
function test_dotnet_home(tc )
25
27
tc .assumeTrue(stdlib .has_dotnet(), " .NET not available" )
26
28
h = stdlib .dotnet_home();
27
29
28
- if ~stdlib .matlabOlderThan(' R2022b' )
29
- tc .verifyGreaterThan(strlength(h ), 0 )
30
- end
30
+ tc .verifyGreaterThan(strlength(h ), 0 )
31
31
end
32
32
33
+
33
34
function test_dotnet_version(tc )
34
35
tc .assumeTrue(stdlib .has_dotnet())
35
36
v = stdlib .dotnet_version();
37
+ tc .verifyClass(v , ' char' )
36
38
tc .verifyTrue(stdlib .version_atleast(v , " 4.0" ), " .NET version should be greater than 4.0" )
37
39
end
38
40
0 commit comments