Starting writing Matlab testing framework
This commit is contained in:
17
modules/matlab/test/OpenCVTest.m
Normal file
17
modules/matlab/test/OpenCVTest.m
Normal file
@@ -0,0 +1,17 @@
|
||||
% Matlab binding test cases
|
||||
% Uses Matlab's builtin testing framework
|
||||
classdef OpenCVTest < matlab.unittest.TestCase
|
||||
|
||||
methods(Test)
|
||||
|
||||
% check if the autogenerated functions can be found
|
||||
function randExists(testcase)
|
||||
try
|
||||
cv.rand();
|
||||
catch
|
||||
testcase.verifyFail();
|
||||
end
|
||||
testcase.verifyTrue(true);
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user