mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-08-25 03:10:54 +00:00
Correct handling of trailing zeros in _rle_encode (#4702)
This commit is contained in:
@@ -52,3 +52,7 @@ def test_private_get_extension():
|
||||
assert utils._get_extension(empty_buffer) == ''
|
||||
assert utils._get_extension(empty_buffer) == '' # make sure it did seek back
|
||||
assert utils._get_extension(CustomFd('foo')) == ''
|
||||
|
||||
|
||||
def test_rle_encode_trailing_zeros():
|
||||
assert utils._rle_encode(b'\x12\x00\x00\x00\x00') == b'\x12\x00\x04'
|
||||
|
||||
Reference in New Issue
Block a user