Example #1
0
 def test_toWritten1(self):
     self.assertEqual(problem17.toWritten(1), "one")
Example #2
0
 def test_toWritten27(self):
     self.assertEqual(problem17.toWritten(27), "twenty seven")
Example #3
0
 def test_toWritten56814(self):
     self.assertEqual(problem17.toWritten(56814), "fifty six thousand eight hundred and fourteen")
Example #4
0
 def test_toWritten75423(self):
     self.assertEqual(problem17.toWritten(75423), "seventy five thousand four hundred and twenty three")
Example #5
0
 def test_toWritten1000(self):
     self.assertEqual(problem17.toWritten(1000), "one thousand")
Example #6
0
 def test_toWritten800(self):
     self.assertEqual(problem17.toWritten(800), "eight hundred")
Example #7
0
 def test_toWritten965(self):
     self.assertEqual(problem17.toWritten(965), "nine hundred and sixty five")
Example #8
0
 def test_toWritten101(self):
     self.assertEqual(problem17.toWritten(101), "one hundred and one")
Example #9
0
 def test_toWritten100(self):
     self.assertEqual(problem17.toWritten(100), "one hundred")