summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorSilvio Traversaro <pegua1@gmail.com>2022-03-13 23:08:56 (GMT)
committerBrad King <brad.king@kitware.com>2022-03-15 16:56:59 (GMT)
commit0b324139a13a83083148f7c38acbfe54e9cc6512 (patch)
treed1db7b770990984c40eb71044dd11e51088e0b6c /Tests
parent1783d8cd0e0a3e505665cd7ceec82f3ab7faca49 (diff)
downloadCMake-0b324139a13a83083148f7c38acbfe54e9cc6512.zip
CMake-0b324139a13a83083148f7c38acbfe54e9cc6512.tar.gz
CMake-0b324139a13a83083148f7c38acbfe54e9cc6512.tar.bz2
Tests: Fix FindMatlab.r2018a_check case in MATLAB R2021a and R2021b
Fix a version-as-float comparison bug in the test.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindMatlab/cmake_matlab_unit_tests4.m7
1 files changed, 1 insertions, 6 deletions
diff --git a/Tests/FindMatlab/cmake_matlab_unit_tests4.m b/Tests/FindMatlab/cmake_matlab_unit_tests4.m
index 6a7b04d..c2bf270 100644
--- a/Tests/FindMatlab/cmake_matlab_unit_tests4.m
+++ b/Tests/FindMatlab/cmake_matlab_unit_tests4.m
@@ -1,4 +1,3 @@
-
classdef cmake_matlab_unit_tests4 < matlab.unittest.TestCase
% Testing R2017b and R2018a APIs
properties
@@ -12,11 +11,7 @@ classdef cmake_matlab_unit_tests4 < matlab.unittest.TestCase
function testR2018a(testCase)
ret = cmake_matlab_mex2b(5+6i);
- v = version;
- n = find(v=='.');
- v = str2double(v(1:n(2)-1));
- disp(v)
- if v>= 9.4 % R2018a
+ if not(verLessThan('matlab','9.4')) % R2018a
testCase.verifyEqual(ret, 16);
disp('TESTING version >= 9.4')
else