matlab.unittest.constraints.ReturnsTrue class
Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.Constraint
Constraint specifying function handle that returns true
Construction
ReturnsTrue
provides a constraint specifying
that a function handle that returns true. The constraint is satisfied
only by a function handle that returns a scalar logical with a value
of true
.
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.
Examples
Tips
To display custom comparisons in the form of a function handle, use
ReturnsTrue
instead ofIsTrue
.