https://github.com/Kitware/CMake
Raw File
Tip revision: 5709a7e572df220655659155d26b2f56cb97acf3 authored by Brad King on 08 March 2023, 15:01:06 UTC
CMake 3.25.3
Tip revision: 5709a7e
cmake_matlab_unit_tests4.m
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
back to top