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

Method test_toreal

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

Source from the content-addressed store, hash-verified

970 assert isinstance(r._ast, IteNode)
971
972 def test_toreal(self):
973 x = Int("x")
974 r = ToReal(x)
975 assert isinstance(r._ast, ToRealNode)
976 assert r.sort() == RealSort()
977
978 def test_toint(self):
979 x = Real("x")

Callers

nothing calls this directly

Calls 4

IntFunction · 0.90
ToRealFunction · 0.90
RealSortFunction · 0.90
sortMethod · 0.45

Tested by

no test coverage detected