def testgetRegularContinuedFraction1_15(self): f = Fraction(1, 15) self.assertEqual([0, 15], getRegularContinuedFraction(f))
def testgetRegularContinuedFraction73_29(self): f = Fraction(73, 29) self.assertEqual([2, 1, 1, 14], getRegularContinuedFraction(f))