Two tree nodes with identical content are structurally equal.
(self)
| 220 | """Test structural_eq="tree" kind.""" |
| 221 | |
| 222 | def test_equal_content(self) -> None: |
| 223 | """Two tree nodes with identical content are structurally equal.""" |
| 224 | a = TExpr(value=42) |
| 225 | b = TExpr(value=42) |
| 226 | assert structural_equal(a, b) |
| 227 | assert structural_hash(a) == structural_hash(b) |
| 228 | |
| 229 | def test_different_content(self) -> None: |
| 230 | """Two tree nodes with different content are not equal.""" |
nothing calls this directly
no test coverage detected