( string_is_x )

凡例
対応コードあり
直接対応していないが代替の書き方あり
対応コードなし
-未確認
( .. )ローカライズまだ
Example Python
pytest
PHP
PHPUnit
Swift
Testing
Csharp
xunit
Bash
bats
Powershell
pester
C++
GoogleTest
JavaScript
Jest
Kotlin
jUnit
( string_is_empty ) s == '' $s === '' - string.IsNullOrEmpty(s) - - - - -
( string_is_null_or_empty ) is None + len - - string.IsNullOrEmpty(s) - - - - -
( string_contains ) s in text - - text.Contains(s) - - - - -
( string_starts_with ) text.startswith(s) str_starts_with($text, $prefix) - text.StartsWith(s) [[ "$str" = "$prefix"* ]] - - - -
( string_ends_with ) text.endswith(s) str_ends_with($text, $suffix) - text.StartsWith(s) - - - - -
( is_alnum ) text.isalnum() - - text.All(char.IsLetterOrDigit) - - - - -
( is_alnum_multibyte ) - - text.All(char.IsLetterOrDigit) - - - - -
( is_alpha ) - - text.All(char.IsLetter) - - - - -
( is_digit ) - - text.All(char.IsDigit) - - - - -
( is_space ) - - text.IsWhiteSpace() - - - - -
( is_lower ) islower - - text.All(char.IsLower) - - - - -
( is_upper ) isupper - - text.All(char.IsUpper) - - - - -