def test_proffessor_example_9(self): target = 10004 expected = 'ten thousand four' actual = spell(target) self.assertEqual(expected, actual)
def test_proffessor_example_7(self): target = -13456678 expected = 'negative thirteen million four hundred fifty six thousand six hundred seventy eight' actual = spell(target) self.assertEqual(expected, actual)
def test_proffessor_example_8(self): target = 0 expected = 'zero' actual = spell(target) self.assertEqual(expected, actual)
def test_proffessor_example_4(self): target = -123456789 expected = 'negative one hundred twenty three million four hundred fifty six thousand seven hundred eighty nine' actual = spell(target) self.assertEqual(expected, actual)
def test_proffessor_example_6(self): target = -418 expected = 'negative four hundred eighteen' actual = spell(target) self.assertEqual(expected, actual)
def test_proffessor_example_3(self): target = 66 expected = 'sixty six' actual = spell(target) self.assertEqual(expected, actual)
def test_can_convert_all_the_nums(self): for number in range(-999999999, 999999999, 191531): expected = self.sure_convert(number) actual = spell(number) self.assertEqual(expected, actual)
def test_proffessor_example_2(self): target = 456678 expected = 'four hundred fifty six thousand six hundred seventy eight' actual = spell(target) self.assertEqual(expected, actual)
def test_can_convert_lower_boundaries(self): target = -999999999 expected = self.sure_convert(target) actual = spell(target) self.assertEqual(expected, actual)
def test_can_return_zero(self): expected = "zero" actual = spell(0) self.assertEqual(expected, actual)