matlab.unittest.constraints.IsTrue class
Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.Constraint
Constraint specifying true value
Construction
IsTrue
provides
a constraint specifying a true value. This constraint is satisfied
only by a scalar logical with a value of true
.
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
Tips
For faster test execution, use
verifyTrue
,assertTrue
,assumeTrue
, orfatalAssertTrue
instead ofIsTrue
.To display custom comparisons in the form of a function handle, use
ReturnsTrue
instead ofIsTrue
.