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