Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ test_as_long
Method
test_as_long
tests/test_z3_ported.py:3207–3209 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3205
assert r.as_string() ==
"1/3"
3206
3207
def
test_as_long(self):
3208
r = RatVal(7, 2)
3209
assert r.as_long() == 3
# integer division
3210
3211
def
test_q_alias(self):
3212
r = Q(2, 5)
Callers
nothing calls this directly
Calls
2
RatVal
Function · 0.90
as_long
Method · 0.45
Tested by
no test coverage detected