Class: matlab.unittest.constraints.Constraint
Package: matlab.unittest.constraints
Determine whether value satisfies constraint
TF = satisfiedBy(
determines whether constObj
,actVal
)actVal
satisfies the constraint
constObj
. The method returns true
(logical
1
) when the constraint is satisfied and
false
(logical 0
) when the constraint is
not satisfied. When creating a custom constraint, you must place the comparison
logic in this method.
The satisfiedBy
method is more commonly used to test for the
passing case. Therefore, providing more detailed analysis after a failure can be
more efficiently handled by other methods such as the getDiagnosticFor
method.
|
|
|
Value to evaluate against the constraint |