blob: b1936e354bf95c7cb3c3a329e2dc6e898f3d43ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
classdef cmake_matlab_unit_tests5 < matlab.unittest.TestCase
% C++ API test
properties
end
methods (Test)
function testDummyCall(testCase)
% very simple call test
disp('TESTING C++')
ret = cmake_matlab_mex3(162);
testCase.verifyEqual(ret, 162);
end
function testFailTest(testCase)
testCase.verifyError(@() cmake_matlab_mex3, 'MATLAB:mex:CppMexException');
end
end
end
|