运算符优先级
🌐 Operator precedence
这个表达式是按照标准优先级 not > and > or 来计算的。二元运算符是左结合的。
🌐 The expression is evaluated with the standard precedence
not > and > or. Binary operators are left-associative.
| 表达式 | 等价分组 |
|---|---|
a or b and c | a or (b and c) |
not a and b | (not a) and b |
用括号来覆盖:
🌐 Use parentheses to override:
| 表达式 | 选择 |
|---|---|
(unit or smoke) and not slow | 非慢速的单元或冒烟测试 |
db && !flaky | 不易出错的数据库测试 |
* | 所有带标签的测试 |