Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ test_numerator
Method
test_numerator
tests/test_z3_ported.py:3176–3180 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3174
assert isinstance(r, ArithRef)
3175
3176
def
test_numerator(self):
3177
r = RatVal(1, 3)
3178
n = r.numerator()
3179
assert isinstance(n, IntNumRef)
3180
assert n.as_long() == 1
3181
3182
def
test_denominator(self):
3183
r = RatVal(1, 3)
Callers
nothing calls this directly
Calls
3
RatVal
Function · 0.90
numerator
Method · 0.80
as_long
Method · 0.45
Tested by
no test coverage detected