pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.725 2004/05/02 18:35:12 nilsson Exp $"]]); + test_true([["$Id: testsuite.in,v 1.726 2004/05/13 23:33:15 nilsson Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])   test_compile_any([[#pike 7.4]])   test_compile_any([[#pike 7.0]])   test_compile_any([[#pike 0.6]])      cond([[all_constants()->_verify_internals]],   [[    test_do(_verify_internals())
pike.git/src/testsuite.in:8956:   test_has_value([[ class {}() ]],"foo",0)   test_has_value([[ (class{array _values(){return({"a","b"});}})() ]],"b",1)      // - hash   test_eq(hash("foo"),2091538203)   test_eq(hash("foo",10),3)   test_eq(hash("bar"),2091518428)   test_eq(hash("bar",10),8)   test_eq(hash("b\666arqwerty1234"),1829582221)   test_eq(hash(""),0) + test_eval_error( return hash("foo",0) ) + test_eval_error( return hash("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)    test_any([[
pike.git/src/testsuite.in:8979:   ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl   [[i;    ]], $2)   ]])   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 hash_7_4("foo",0) )      // - hash_7_0   define(test_hash_7_0, [[    test_any([[    int i = hash_7_0($1);    return ]]dnl   ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl   [[i;    ]], $2)    test_any([[
pike.git/src/testsuite.in:9002:   ifelse([[$3]],,, [[((i==$2)||(i==$3))?$2:]])dnl   [[i;    ]], $2)   ]])   test_hash_7_0("foo",27734)   test_hash_7_0([["foo",10]],4)   test_hash_7_0("bar",26689)   test_hash_7_0([["bar",10]],9)   test_hash_7_0("b\666arqwerty1234", 2142487018, 1858424874)   test_hash_7_0("",0) + test_eval_error( return hash_7_0("foo",0) )      // - indices   test_equal(indices("foo"),({0,1,2}))   test_equal(indices(({'f','o','o'})),({0,1,2}))   test_equal(Array.sort_array(indices(([7:3,8:9,99:12]))),({7,8,99}))   test_equal(Array.sort_array(indices((<7,8,99>))),({7,8,99}))   test_equal(mkmultiset(indices(class{constant a="a"; constant b="b";}())),    (<"a","b">))      // - initgroups
pike.git/src/testsuite.in:9272:      // - random_seed   test_do(int p; foreach(({1,2,3,4,5}),p) random_seed(p))   test_eq([[random_seed(17),random(20000)]],[[random_seed(17),random(20000)]])   test_eq([[random_seed(18),random(20000)]],[[random_seed(18),random(20000)]])   test_eq([[random_seed(19),random(20000)]],[[random_seed(19),random(20000)]])   test_equal([[random_seed(4711),map(allocate(10,1000), random)]],    [[({598,11,331,991,383,553,997,53,272,381})]])      // - random_string + test_eq( sizeof(random_string(47)), 47 ) + test_eq( random_string(0), "" ) + test_eval_error( return random_string(-1); ) +    // - readlink   // - remove_call_out      // - remove_include_path   // - remove_module_path   // - remove_program_path   // Tested in lib      // - replace   test_eq(replace("foo","f","\x9999"),"\x9999oo")