testCase.verifyThat(zeros(5), HasSameSizeAs(ones(1,5)))
Interactive verification failed.
---------------------
Framework Diagnostic:
---------------------
HasSameSizeAs failed.
Actual Size: [5 5]
ExpectedSize: [1 5]
See Also
matlab.unittest.constraints.Constraint
Related Examples
- “Create Custom Boolean Constraint” on page 33-153
33 Unit Testing