( dict_elem_access )
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 |
|---|---|---|---|---|---|
| ( get_value_by_key ) | d[k] | d.at(k) | - | - | - |
| ( dict_key_not_found ) | KeyError | std::out_of_range | - | - | - |
| ( dict_key_exists ) | → | d.find(k) != d.end() | - | - | - |
| ( dict_value_exists ) | → | - | - | - | - |
| ( get_keys ) | → | - | - | - | - |
| ( get_values ) | → | - | - | - | - |
| ( get_key_value_tuple ) | → | - | - | - | - |
| ( set_default_value_and_get ) | → | - | - | - | - |
| ( get_value_or_default_value ) | → | - | - | - | - |
| ( dict_reverse_lookup ) | → | - | - | - | - |
| ( composite_key ) | use tuple | - | - | - | - |