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

Method test_toint

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

Source from the content-addressed store, hash-verified

976 assert r.sort() == RealSort()
977
978 def test_toint(self):
979 x = Real("x")
980 r = ToInt(x)
981 assert isinstance(r._ast, ToIntNode)
982 assert r.sort() == IntSort()
983
984 def test_sum(self):
985 x, y, z = Ints("x y z")

Callers

nothing calls this directly

Calls 4

RealFunction · 0.90
ToIntFunction · 0.90
IntSortFunction · 0.90
sortMethod · 0.45

Tested by

no test coverage detected