input   : AAABBBCCCD
encoded : 3A3B3C1D
decoded : AAABBBCCCD
roundtrip: OK

input   : AB
encoded : 1A1B
decoded : AB
roundtrip: OK

input   : WWWWWWWWWWWW
encoded : 12W
decoded : WWWWWWWWWWWW
roundtrip: OK