Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Constraint specifying string matches regular expression
Matches(
creates
a constraint that specifies that a string scalar or character vector
matches a regular expression. The constraint is satisfied only if
the actual value matches the given regular expression, expr
)expr
.
Matches(
provides a constraint with additional options specified by one or more
expr
,Name,Value
)Name,Value
pair arguments. Name
must appear
inside single quotes (''
). You can specify several name-value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.
|
Regular expression that the actual value must match to satisfy
the constraint, specified as a string scalar or character vector. |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Indicator to ignore case, specified as Default: |
|
Number of times the actual value must match
|
|
Regular expression that the actual value must match, specified in the input argument,
|
|
Indicator if the constraint is insensitive to case, specified in the name-value pair argument,
|
Value. To learn how value classes affect copy operations, see Copying Objects.