mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
160499296c
Also allowing a way to select which of multiple installed MATLAB versions to use in the test.
29 lines
597 B
Matlab
29 lines
597 B
Matlab
|
|
classdef cmake_matlab_unit_tests4 < matlab.unittest.TestCase
|
|
% Testing R2017b and R2018a APIs
|
|
properties
|
|
end
|
|
|
|
methods (Test)
|
|
function testR2017b(testCase)
|
|
ret = cmake_matlab_mex2a(5+6i);
|
|
testCase.verifyEqual(ret, 8);
|
|
end
|
|
|
|
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
|
|
testCase.verifyEqual(ret, 16);
|
|
disp('TESTING version >= 9.4')
|
|
else
|
|
testCase.verifyEqual(ret, 8);
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|