I am currently developing a calss based Matlab Unit Test project, I wish to run a function, when two structs are not equal.Inside my testcase class I use the following method
verifyThat(testCase,value1,matlab.unittest.constraints.IsEqualTo(value2))
If the verfication fails I want to be able to run a function on those values. How can I get a return value from the verifyThat() function? Right after calling it, not at the end of the test suite.
result = verifyThat(testCase,value1,matlab.unittest.constraints.IsEqualTo(value2))
Gave me an error:
--------- Error ID: --------- 'MATLAB:TooManyOutputs' -------------- Error Details: -------------- Error using matlab.unittest.qualifications.Assertable/assertNotEmpty Too many output arguments.
Best Answer