matlab.unittest.constraints.EndsWithSubstring クラス
パッケージ: matlab.unittest.constraints
スーパークラス: matlab.unittest.constraints.BooleanConstraint
値が指定の文字列で終わっているかどうかをテスト
説明
matlab.unittest.constraints.EndsWithSubstring
クラスは、値が指定の文字列で終わっているかどうかをテストするための制約を提供します。
作成
説明
c = matlab.unittest.constraints.EndsWithSubstring(
は、値が指定の文字列で終わっているかどうかをテストするための制約を作成します。この制約は、suffix
)suffix
で終わる string スカラーまたは文字ベクトルで満たされます。
c = matlab.unittest.constraints.EndsWithSubstring(
は、1 つ以上の名前と値の引数を使用して追加のオプションを設定します。たとえば、suffix
,Name,Value
)c = matlab.unittest.constraints.EndsWithSubstring(suffix,"IgnoringCase",true)
は大文字と小文字を区別しない制約を作成します。
入力引数
プロパティ
例
バージョン履歴
R2013a で導入