( control_syntax )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Feature | Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|---|
| ( conditional ) | ( if_syntax ) | → | - | → | - | - |
| ( postfix_if ) | → | - | → | - | - | |
| ( ternary_conditional_operator ) | → | - | → | - | - | |
| ( ternary_conditional_operator_nested ) | → | - | → | - | - | |
| ( switch_statement ) | → | - | → | - | - | |
| ( switch_statement_fallthrough ) | - | - | → | - | - | |
| ( switch_statement_additional_conditions ) | - | - | → | - | - | |
| ( loop ) | ( 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 ) | - | - | → | - | - |