Class: matlab.unittest.constraints.Constraint
Package: matlab.unittest.constraints
Determine whether value satisfies constraint
TF = satisfiedBy(constObj,actVal)
TF = satisfiedBy(
determines
whether a value, constObj
,actVal
)actVal
, satisfies a constraint, constObj
.
The satisfiedBy
method is used to determine qualification
success or failure. It returns true
or false
(logical
0
or 1
).
When creating a custom constraint, a class author must place comparison
logic in this method.
Since the most common usage is for the passing case, the constraint author should optimize for speed in that case. It is only in the failing case that more expensive detailed analysis is helpful.
|
Value to evaluate against the constraint |
|
|