Exemplo n.º 1
0
 def test_repeated_chars(self):
     self.assertEqual('a1b4c2d1e3',
                      functions.string_compress('abbbbccdeee'))
Exemplo n.º 2
0
 def test_length_one(self):
     self.assertEqual('a1', functions.string_compress('a'))
Exemplo n.º 3
0
 def test_multiple_chars(self):
     self.assertEqual('a1b1c1d1', functions.string_compress('abcd'))
Exemplo n.º 4
0
 def test_empty(self):
     self.assertEqual('', functions.string_compress(''))