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