MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_int_var

Method test_int_var

tests/test_z3_compat.py:244–248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

242
243class TestExprBuilding:
244 def test_int_var(self):
245 x = Int("x")
246 assert isinstance(x._ast, Var) and x._ast.name == "x"
247 assert x.sort() == IntSort()
248 assert any(n == "x" for n, _ in x._vars)
249
250 def test_arith_ops(self):
251 x, y = Ints("x y")

Callers

nothing calls this directly

Calls 3

IntFunction · 0.90
IntSortFunction · 0.90
sortMethod · 0.45

Tested by

no test coverage detected