Control syntax
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Feature | Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|---|
| Conditional ( if, else, .. ) | ( if_syntax ) | → | - | → | - | - | - | - | - | - |
| ( postfix_if ) | → | - | → | - | - | - | - | - | - | |
| ( ternary_conditional_operator ) | → | - | → | - | - | - | - | - | - | |
| ( ternary_conditional_operator_nested ) | → | - | → | - | - | - | - | - | - | |
| ( switch_statement ) | → | - | → | - | - | - | - | - | - | |
| ( switch_statement_fallthrough ) | - | - | → | - | - | - | - | - | - | |
| ( switch_statement_additional_conditions ) | - | - | → | - | - | - | - | - | - | |
| Loop ( for, while, .. ) | ( foreach_loop ) | → | - | → | - | - | - | - | - | - |
| ( foreach_with_filter ) | → | - | → | - | - | - | - | - | - | |
| ( for_0_to_n ) | → | - | → | - | - | - | - | - | - | |
| ( while_loop ) | → | - | → | - | - | - | - | - | - | |
| ( while_else ) | → | - | → | - | - | - | - | - | - | |
| ( do_while ) | → | - | - | - | - | - | - | - | - | |
| ( infinite_loop ) | → | - | → | - | - | - | - | - | - | |
| ( repeat_n_times ) | → | - | → | - | - | - | - | - | - | |
| ( implicit_variable_in_loop ) | → | - | → | - | - | - | - | - | - | |
| ( break_out_of_loop ) | → | - | → | - | - | - | - | - | → | |
| ( continue_in_loop ) | → | - | → | - | - | - | - | - | → | |
| ( redo_in_loop ) | → | - | → | - | - | - | - | - | → | |
| ( break_out_of_nested_loop ) | → | - | → | - | - | - | - | - | → | |
| ( do_while_loop ) | - | - | → | - | - | - | - | - | - |