示例#1
0
 def test_equals(self):
     self.assertEqual(wordify(1), 'one')
示例#2
0
 def test_equals_2(self):
     self.assertEqual(wordify(10), 'ten')
示例#3
0
 def test_equals_8(self):
     self.assertEqual(wordify(120), 'one hundred twenty')
示例#4
0
 def test_equals_9(self):
     self.assertEqual(wordify(326), 'three hundred twenty six')
示例#5
0
 def test_equals_7(self):
     self.assertEqual(wordify(100), 'one hundred')
示例#6
0
 def test_equals_6(self):
     self.assertEqual(wordify(90), 'ninety')
示例#7
0
 def test_equals_5(self):
     self.assertEqual(wordify(56), 'fifty six')
示例#8
0
 def test_equals_4(self):
     self.assertEqual(wordify(17), 'seventeen')
示例#9
0
 def test_equals_3(self):
     self.assertEqual(wordify(12), 'twelve')