MCPcopy Index your code
hub / github.com/python/cpython / as_integer_ratio

Method as_integer_ratio

Lib/test/test_fractions.py:289–290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

287 def __init__(self, ratio):
288 self._ratio = ratio
289 def as_integer_ratio(self):
290 return self._ratio
291
292
293class FractionTest(unittest.TestCase):

Callers 3

test_as_integer_ratioMethod · 0.45
test_as_integer_ratioMethod · 0.45
test_floatasratioMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected