Пример #1
0
 def it_decodes_rle_token(self):
     assert Rle.decode_rle_token("4a4b2cd3e") == "aaaabbbbccdeee"
     assert Rle.decode_rle_token(
         "4a4b2cd3efghij"
     ) == "aaaabbbbccdeeefghij"
     assert Rle.decode_rle_token("4a4b2cd3ef") == "aaaabbbbccdeeef"
     assert Rle.decode_rle_token("4a2bf2b2cd3e") == "aaaabbfbbccdeee"
     assert Rle.decode_rle_token(
         "4a2bfghij2b2cd3e"
     ) == "aaaabbfghijbbccdeee"
     assert Rle.decode_rle_token(" 10a3 ") == " aaaaaaaaaa   "
     assert Rle.decode_rle_token("ccc") == "ccc"
Пример #2
0
 def it_preserves_ending_digits(self):
     assert Rle.decode_rle_token("3a4b44") == "aaabbbb44"