rlib/test/test_rsiphash.py::test_siphash24_latin1_unicode
def test_siphash24_latin1_unicode():
for expected, string in CASES:
> check_latin1(string.decode('latin1'), expected)
rlib\test\test_rsiphash.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
s = u'he', expected = 1013213613370725794, test_prebuilt = False
def check_latin1(s, expected, test_prebuilt=False):
with choosen_seed(0x8a9f065a358479f4, 0x11cb1e9ee7f40e1f,
test_misaligned_path=True, test_prebuilt=test_prebuilt):
z = ll_hash_string_siphash24(llunicode(s))
> assert z == intmask(expected)
E assert -9098003871752900753 == 1013213613370725794
E + where 1013213613370725794 = intmask(1013213613370725794)
rlib\test\test_rsiphash.py:62: AssertionError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_rsiphash/py/test_siphash24_latin1_unicode