matlab.unittest.constraints.StartsWithSubstring Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if value starts with specified string
Description
The matlab.unittest.constraints.StartsWithSubstring
class provides a
constraint to test if a value starts with a specified string.
Creation
Description
c = matlab.unittest.constraints.StartsWithSubstring(
creates a constraint to test if a value starts with the specified string. The constraint
is satisfied by a string scalar or character vector that starts with
prefix
)prefix
.
c = matlab.unittest.constraints.StartsWithSubstring(
sets additional options using one or more name-value arguments. For example, prefix
,Name,Value
)c =
matlab.unittest.constraints.StartsWithSubstring(prefix,"IgnoringCase",true)
creates a constraint that is insensitive to case.
Input Arguments
Properties
Examples
Version History
Introduced in R2013a