Exemple #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'
     )
Exemple #2
0
 def test_ex2(self):
     self.assertEqual(uncollapse('eightsix'), 'eight six')
Exemple #3
0
 def test_ex1(self):
     self.assertEqual(uncollapse('three'), 'three')
Exemple #4
0
 def test_ex8(self):
     self.assertEqual(
         uncollapse('zeroonetwothreefourfivesixseveneightnine'),
         'zero one two three four five six seven eight nine')
Exemple #5
0
 def test_ex6(self):
     self.assertEqual(
         uncollapse('fivethreefivesixthreenineonesevenoneeight'),
         'five three five six three nine one seven one eight')
Exemple #6
0
 def test_ex5(self):
     self.assertEqual(uncollapse('foursixeighttwofive'),
                      'four six eight two five')
Exemple #7
0
 def test_ex4(self):
     self.assertEqual(uncollapse('ninethreesixthree'),
                      'nine three six three')
Exemple #8
0
 def test_ex3(self):
     self.assertEqual(uncollapse('fivefourseven'), 'five four seven')