pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:11261:
// - hash 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
+
// - hash_
8
_
0
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) )
+
test_eq(hash_
8
_
0
("foo"),2091538203)
+
test_eq(hash_
8
_
0
("foo",10),3)
+
test_eq(hash_
8
_
0
("bar"),2091518428)
+
test_eq(hash_
8
_
0
("bar",10),8)
+
test_eq(hash_
8
_
0
("b\666arqwerty1234"),1829582221)
+
test_eq(hash_
8
_
0
(""),0)
+
test_eval_error( return hash_
8
_
0
("foo",0) )
+
test_eval_error( return hash_
8
_
0
("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)