mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
buzhash: One more test case
Test with more than 31 bytes to make sure our BARREL_SHIFT macro works correctly.
This commit is contained in:
parent
df85e72d3c
commit
95162ce1f8
1 changed files with 2 additions and 0 deletions
|
@ -25,3 +25,5 @@ def test_buzhash(self):
|
|||
self.assert_equal(buzhash(b'abcdefghijklmnop', 0), 3795437769)
|
||||
self.assert_equal(buzhash(b'abcdefghijklmnop', 1), 3795400502)
|
||||
self.assert_equal(buzhash(b'abcdefghijklmnop', 1), buzhash_update(buzhash(b'Xabcdefghijklmno', 1), ord('X'), ord('p'), 16, 1))
|
||||
# Test with more than 31 bytes to make sure our barrel_shift macro works correctly
|
||||
self.assert_equal(buzhash(b'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz', 0), 566521248)
|
||||
|
|
Loading…
Reference in a new issue