(expr: str, expected: bool)
| 64 | ), |
| 65 | ) |
| 66 | def test_syntax_oddities(expr: str, expected: bool) -> None: |
| 67 | def matcher(name: str, /, **kwargs: str | int | bool | None) -> bool: |
| 68 | return {"true": True, "false": False}[name] |
| 69 | |
| 70 | assert evaluate(expr, matcher) is expected |
| 71 | |
| 72 | |
| 73 | def test_backslash_not_treated_specially() -> None: |
nothing calls this directly
no test coverage detected