( assign_variable )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|
| ( reassignable_variable ) | → | - | - | - | - |
| ( non_reassignable_variable ) | → | - | - | - | - |
| ( assign_with_type_check ) | → | - | - | - | - |
| ( assign_without_type ) | → | - | - | - | - |
| ( assign_multi_value ) | → | - | - | - | - |
| ( assign_multi_value_discard_partially ) | → | - | - | - | - |
| ( assign_multi_value_but_lhs_is_short ) | → | - | - | - | - |
| ( assign_multi_value_but_rhs_is_short ) | → | - | - | - | - |
| ( null_coalescing ) | x = 'not set' if a is None else a | - | - | - | x="${a:-not set}" |
| ( null_coalescing_like_op_in_dictionary ) | d.get(k, 'not set') | - | - | - | - |
| ( assignment_expression_in_conditional_block ) | := | - | - | - | - |
| ( block_scope ) | → | - | do { .. } | - | - |
| ( assign_variable ) | - | - | var | - | - |
| ( assign_constant ) | - | - | let | - | - |
| ( null_coalescing_alternative_1 ) | - | - | - | - | x="${a-not set}" |
| ( null_coalescing_alternative_2 ) | - | - | - | - | : "${x:=not set}" |
| ( returns_value_if_not_empty ) | - | - | - | - | → |