Browse Source

Added another test for negative numerators

remotes/origin/feature/feature-fractions
fdai7764 11 months ago
parent
commit
b641f04611
  1. 5
      src/test/py/test_fractions.py

5
src/test/py/test_fractions.py

@ -10,7 +10,10 @@ class fractions(unittest.TestCase):
pass pass
def test_dec_value_of_20_by_5_should_be_4(self): def test_dec_value_of_20_by_5_should_be_4(self):
self.assertEqual(frac_to_dec(20,5), 4) # add assertion here
self.assertEqual(frac_to_dec(20,5), 4)
def test_dec_value_of_negative_20_by_5_should_be_negative_4(self):
self.assertEqual(frac_to_dec(-20,5), -4)
if __name__ == '__main__': if __name__ == '__main__':

Loading…
Cancel
Save