-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Just pip installed it and quickly found out one serious bug
Python 3.4.3 (default, Sep 14 2015, 17:11:46)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> for i in range(50, 70):
... s = b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'*i
... d = b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'*i + b'2'
... src = io.BytesIO(s)
... dst = io.BytesIO(d)
... signature = librsync.signature(dst)
... delta = librsync.delta(src, signature)
... synced = librsync.patch(dst, delta)
... _= src.seek(0)
... src.read() == synced.read()
...
True
True
True
True
True
True
True
True
True
False
False
False
False
False
False
False
False
False
False
False
tried with current master and all seems ok, so maybe it will be worth it to publish a new release on pypi :)
thijstriemstra
Metadata
Metadata
Assignees
Labels
No labels