def test_111(self):
     self.assertEqual( num_to_str(111), "one hundred and eleven" )
 def test_overflow(self):
     with self.assertRaises(OverflowError):
         num_to_str(1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
 def test_11036(self):
     self.assertEqual( num_to_str(11036), "eleven thousand, thirty six" )
Exemple #4
0
 def test_111(self):
     self.assertEqual(num_to_str(111), "one hundred and eleven")
Exemple #5
0
 def test_overflow(self):
     with self.assertRaises(OverflowError):
         num_to_str(
             1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
         )
Exemple #6
0
 def test_11036(self):
     self.assertEqual(num_to_str(11036), "eleven thousand, thirty six")