Branch: Tag:

2008-06-29

2008-06-29 21:24:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Updated to the primary names for hash_7_{0,4}() being via the version scope.

Rev: src/testsuite.in:1.837

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.836 2008/06/29 15:37:53 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.837 2008/06/29 21:24:20 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
9916:      // - hash_7_4   define(test_hash_7_4, [[ +  ignore_warning("Calling a deprecated value.", [[    test_any([[    int i = hash_7_4($1);    return ]]dnl   ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl   [[i;    ]], $2) -  +  ]])    test_any([[ -  +  int i = 7.4::hash($1); +  return ]]dnl + ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl + [[i; +  ]], $2) +  test_any([[   #pike 7.4    int i = hash($1);    return ]]dnl
9936:   test_hash_7_4([["bar",10]],8)   test_hash_7_4("b\666arqwerty1234", 2142487018, 1858424874)   test_hash_7_4("",0) - test_eval_error( return hash_7_4("foo",0) ) + test_eval_error( return 7.4::hash("foo",0) )      // - hash_7_0   define(test_hash_7_0, [[ -  +  ignore_warning("Calling a deprecated value.", [[    test_any([[    int i = hash_7_0($1);    return ]]dnl   ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl   [[i;    ]], $2) -  +  ]])    test_any([[ -  +  int i = 7.0::hash($1); +  return ]]dnl + ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl + [[i; +  ]], $2) +  test_any([[   #pike 7.0    int i = hash($1);    return ]]dnl
9962:   test_hash_7_0("",0)   test_eval_error( return hash_7_0("foo",0) )    - // Versioned scope. - test_eq(7.0::hash, hash_7_0) - test_eq(7.4::hash, hash_7_4) -  +    // - hash_value   define(test_hash_value, [[    test_true(intp(hash_value($1)))