summaryrefslogtreecommitdiff
path: root/Tests/FindMatlab/cmake_matlab_unit_tests5.m
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindMatlab/cmake_matlab_unit_tests5.m')
-rw-r--r--Tests/FindMatlab/cmake_matlab_unit_tests5.m20
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/FindMatlab/cmake_matlab_unit_tests5.m b/Tests/FindMatlab/cmake_matlab_unit_tests5.m
new file mode 100644
index 000000000..b1936e354
--- /dev/null
+++ b/Tests/FindMatlab/cmake_matlab_unit_tests5.m
@@ -0,0 +1,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