def test_repeated_chars(self): self.assertEqual('a1b4c2d1e3', functions.string_compress('abbbbccdeee'))
def test_length_one(self): self.assertEqual('a1', functions.string_compress('a'))
def test_multiple_chars(self): self.assertEqual('a1b1c1d1', functions.string_compress('abcd'))
def test_empty(self): self.assertEqual('', functions.string_compress(''))