( control_syntax )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| 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 ) | - | - | → | - | - |