示例#1
0
 def test_ex7(self):
     self.assertEqual(
         uncollapse(
             'threesevensevensixninenineninefiveeighttwofiveeightsixthreeeight'
         ),
         'three seven seven six nine nine nine five eight two five eight six three eight'
     )
示例#2
0
 def test_ex2(self):
     self.assertEqual(uncollapse('eightsix'), 'eight six')
示例#3
0
 def test_ex1(self):
     self.assertEqual(uncollapse('three'), 'three')
示例#4
0
 def test_ex8(self):
     self.assertEqual(
         uncollapse('zeroonetwothreefourfivesixseveneightnine'),
         'zero one two three four five six seven eight nine')
示例#5
0
 def test_ex6(self):
     self.assertEqual(
         uncollapse('fivethreefivesixthreenineonesevenoneeight'),
         'five three five six three nine one seven one eight')
示例#6
0
 def test_ex5(self):
     self.assertEqual(uncollapse('foursixeighttwofive'),
                      'four six eight two five')
示例#7
0
 def test_ex4(self):
     self.assertEqual(uncollapse('ninethreesixthree'),
                      'nine three six three')
示例#8
0
 def test_ex3(self):
     self.assertEqual(uncollapse('fivefourseven'), 'five four seven')