summaryrefslogtreecommitdiff
path: root/Tests/FindMatlab/cmake_matlab_unit_tests4.m
blob: c2bf27053568250655bc4a245bd0ce42d3137824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
      if not(verLessThan('matlab','9.4')) % R2018a
        testCase.verifyEqual(ret, 16);
        disp('TESTING version >= 9.4')
      else
        testCase.verifyEqual(ret, 8);
      end
    end

  end
end