(self)
| 329 | assert isinstance(radd._ast.lhs, IntLit) and radd._ast.lhs.val == 1 |
| 330 | |
| 331 | def test_function_decl(self): |
| 332 | S = DeclareSort("S") |
| 333 | f = Function("f", IntSort(), S) |
| 334 | x = Int("x") |
| 335 | app = f(x) |
| 336 | # f and S should be free vars |
| 337 | assert any(n == "f" for n, _ in app._vars) |
| 338 | var_names = {n for n, _ in app._vars} |
| 339 | assert "S" in var_names |
| 340 | |
| 341 | def test_nat_var(self): |
| 342 | n = Nat("n") |
nothing calls this directly
no test coverage detected