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

Method test_denominator

tests/test_z3_ported.py:3182–3186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3180 assert n.as_long() == 1
3181
3182 def test_denominator(self):
3183 r = RatVal(1, 3)
3184 d = r.denominator()
3185 assert isinstance(d, IntNumRef)
3186 assert d.as_long() == 3
3187
3188 def test_numerator_as_long(self):
3189 r = RatVal(7, 11)

Callers

nothing calls this directly

Calls 3

RatValFunction · 0.90
denominatorMethod · 0.80
as_longMethod · 0.45

Tested by

no test coverage detected