pike.git / src / testsuite.in

version» Context lines:

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)