Exemplo n.º 1
0
 def test_can_get_int_part(self):
     frac = Fraction(7, 3)
     self.assertEqual(frac.get_integer_part(), 2)
Exemplo n.º 2
0
 def test_can_return_integer(self):
     fraction = Fraction(19, 5)
     self.assertTrue(fraction.get_integer_part() == 3)