pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-06
2014-12-06 14:54:02 by Marcus Comstedt <marcus@mc.pp.se>
a86ad4e0872578f4b6080db914e4657056d2f16e (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Testsuite: Handle endianness dependency in hash_7_0()
11020:
test_eq([[ hash_7_0("foo",10) ]],4) test_eq([[ hash_7_0("bar") ]],26689) test_eq([[ hash_7_0("bar",10) ]],9)
-
test_eq([[ hash_7_0("b\666arqwerty1234"
, 2142487018
) ]], 1858424874)
+
test_eq([[ hash_7_0("b\666arqwerty1234") ]],
[[(Pike.get_runtime_info().native_byteorder == 4321? 2142487018 :
1858424874)
]])
test_eq([[ hash_7_0("") ]],0) test_eval_error( return hash_7_0("foo",0) )