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