Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Constraint specifying expected length of array
HasLength(
provides
a constraint that specifies an expected length of an array. The constraint
is satisfied if the largest dimension length of the actual value array
has the same number of elements specified as by lengthVal
)lengthVal
.
|
Length a value must have to satisfy the constraint. |
|
Length a value must have to satisfy the constraint. Set this
property through the constructor via the |
Value. To learn how value classes affect copy operations, see Copying Objects.
HasElementCount
| HasSize
| IsEmpty
| length