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