def test_decode_unicode(self): self.assertMultiLineEqual('⏰⚽⚽⚽⭐⭐⏰', decode('⏰3⚽2⭐⏰'))
def test_decode_with_single(self): self.assertMultiLineEqual( 'WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB', decode('12WB12W3B24WB'))
def test_combination(self): self.assertMultiLineEqual('zzz ZZ zZ', decode(encode('zzz ZZ zZ')))
def test_decode(self): self.assertMultiLineEqual('AABBBCCCC', decode('2A3B4C'))