Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Real
Function · 0.90
ToInt
Function · 0.90
IntSort
Function · 0.90
sort
Method · 0.45
Tested by
no test coverage detected