matlab.unittest.constraints.AnyCellOf class
Package: matlab.unittest.constraints
Test if any element of cell array meets constraint
Description
The AnyCellOf
class creates a proxy of the actual
value to the framework. The proxy enables a test writer to apply a
constraint against each element of a cell array, which ensures that
a passing result occurs if at least one element of the cell array
satisfies the constraint.
It is intended that you use this class through matlab.unittest
qualifications
as shown in the examples. The class does not modify the provided actual
value, but serves as a wrapper to perform the constraint analysis.
The testing framework analyzes the constraint on an element-by-element
basis.
Construction
AnyCellOf(
creates
a proxy instance that tests if any element of a provided cell array, actVal
)actVal
,
meets a constraint. The test passes if at least one element individually
satisfies the constraint.
Input Arguments
|
Actual value to test against constraint |
Properties
|
Actual value to test against constraint. Set this property through
the constructor via the |
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
See Also
matlab.unittest.qualifications
| EveryElementOf
| AnyElementOf
| EveryCellOf