pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:11262:
test_eq(hash("foo"),246314004) test_eq(hash("foo",10),4) test_eq(hash("bar"),134531432) test_eq(hash("bar",10),2) test_eq(hash("b\666arqwerty1234"),312063732) test_eq(hash(""),1937178839) test_eval_error( return hash("foo",0) ) test_eval_error( return hash("foo",-1) ) // - hash_7_8
+
ignore_warning("Calling a deprecated value.", [[
test_eq(hash_7_8("foo"),2091538203) test_eq(hash_7_8("foo",10),3) test_eq(hash_7_8("bar"),2091518428) test_eq(hash_7_8("bar",10),8) test_eq(hash_7_8("b\666arqwerty1234"),1829582221) test_eq(hash_7_8(""),0) test_eval_error( return hash_7_8("foo",0) ) test_eval_error( return hash_7_8("foo",-1) )
-
+
]])
// - hash_7_4 define(test_hash_7_4, [[ test_any([[ int i = hash_7_4($1); return ]]dnl ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl [[i; ]], $2) ]])
-
+
ignore_warning("Calling a deprecated value.", [[
test_hash_7_4("foo",2091538203) test_hash_7_4([["foo",10]],3) test_hash_7_4("bar",2091518428) test_hash_7_4([["bar",10]],8) test_hash_7_4("b\666arqwerty1234", 2142487018, 1858424874) test_hash_7_4("",0) test_eval_error( return 7.4::hash("foo",0) )
-
+
]])
// - hash_7_0
-
+
ignore_warning("Calling a deprecated value.", [[
test_eq([[ hash_7_0("foo") ]],27734) 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") ]], [[(Pike.get_runtime_info().native_byteorder == 4321? 2142487018 : 1858424874)]]) test_eq([[ hash_7_0("") ]],0) test_eval_error( return hash_7_0("foo",0) )
-
+
]])
// - hash_value define(test_hash_value, [[ test_true(intp(hash_value($1))) dnl Make sure the value to hash has a chance at surviving the optimizer... test_do(add_constant("test_value", $1)) test_eq(hash_value($1),hash_value($1)) test_do(add_constant("test_value")) ]]) test_hash_value(77)