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" )
Exemplo n.º 4
0
 def test_111(self):
     self.assertEqual(num_to_str(111), "one hundred and eleven")
Exemplo n.º 5
0
 def test_overflow(self):
     with self.assertRaises(OverflowError):
         num_to_str(
             1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
         )
Exemplo n.º 6
0
 def test_11036(self):
     self.assertEqual(num_to_str(11036), "eleven thousand, thirty six")