summaryrefslogtreecommitdiffstats
path: root/Tests/FindMatlab/cmake_matlab_unit_tests5.m
diff options
context:
space:
mode:
authorCris Luengo <cris.l.luengo@gmail.com>2018-10-22 08:19:04 (GMT)
committerCris Luengo <cris.l.luengo@gmail.com>2018-10-24 06:09:06 (GMT)
commit160499296c61b0edf2e6b08c44b31444e022528f (patch)
tree416376babb083f6b3aeeff3831e4111264be4071 /Tests/FindMatlab/cmake_matlab_unit_tests5.m
parentee7e97a7d35a793985cf6f9aa185069460cf0ec6 (diff)
downloadCMake-160499296c61b0edf2e6b08c44b31444e022528f.zip
CMake-160499296c61b0edf2e6b08c44b31444e022528f.tar.gz
CMake-160499296c61b0edf2e6b08c44b31444e022528f.tar.bz2
FindMatlab: added unit tests for new functionality.
Also allowing a way to select which of multiple installed MATLAB versions to use in the test.
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 0000000..b1936e3
--- /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