Conditional ( if, else, .. )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( if_syntax ) | → | - | → | - | - | - | - | - | - |
| ( postfix_if ) | → | - | → | - | - | - | - | - | - |
| ( ternary_conditional_operator ) | x = a if c else b | - | → | - | - | - | - | - | - |
| ( ternary_conditional_operator_nested ) | → | - | → | - | - | - | - | - | - |
| ( switch_statement ) | → | - | → | - | - | - | - | - | - |
| ( switch_statement_fallthrough ) | - | - | → | - | - | - | - | - | - |
| ( switch_statement_additional_conditions ) | - | - | → | - | - | - | - | - | - |