演算子
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( logic_operator_not ) | not | - | - | - | - | - | - | - | - |
| ( logic_operator_and ) | and | - | - | - | - | - | - | - | - |
| ( logic_operator_or ) | or | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_pow ) | ** | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_add ) | + | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_mul ) | * | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_div ) | / | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_mod ) | % | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_floor_division ) | // | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_div_result_type ) | int / int -> float | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_mul_result_type ) | int * float -> float | - | - | - | - | - | - | - | - |
| ( arithmetic_operator_plus_result_type ) | int + float -> float | - | - | - | - | - | - | - | - |
| ( comparison_operator_less_than ) | < | - | - | - | - | - | - | - | - |
| ( comparison_operator_less_than_or_equal ) | <= | - | - | - | - | - | - | - | - |
| ( comparison_operator_greater_than ) | > | - | - | - | - | - | - | - | - |
| ( comparison_operator_greater_than_or_equal ) | >= | - | - | - | - | - | - | - | - |
| ( comparison_operator_equal ) | == | - | - | - | - | - | - | - | - |
| ( additional_assignment_operator ) | += | - | - | - | - | += / -= | - | - | - |
| ( increment_operator ) | → | - | - | - | - | ++ / -- | - | - | - |