You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
428 B
21 lines
428 B
5 years ago
|
|
||
|
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
|