pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.587 2003/04/08 14:23:16 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.588 2003/08/05 12:59:21 mast Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])      cond([[all_constants()->_verify_internals]],   [[    test_do(_verify_internals())   ]]);   test_eq(1e1,10.0);   test_eq(1E1,10.0);
pike.git/src/testsuite.in:7965:   test_equal(reverse(({})),({}))   test_equal(reverse(({42})),({42}))   test_equal(reverse(({42,4711})),({4711,42}))   test_equal(reverse(0x12345678),0x1e6a2c48)      // - rusage   test_true(arrayp(rusage()))   test_true(sizeof(rusage())>28)      // - has_index - define(test_has_index,[[test_true([[mixed foo=$1; return has_index(foo,$2)==$3;]])]]) + define(test_has_index,[[test_any([[mixed foo=$1; return has_index(foo,$2)==$3;]], 1)]])   test_has_index([[ ({}) ]],0,0)   test_has_index([[ ({}) ]],"foo",0)   test_has_index([[ ({ "a" }) ]],-1,0)   test_has_index([[ ({ "a" }) ]],"a",0)   test_has_index([[ ({ "a" }) ]],0,1)   test_has_index([[ ({ "a" }) ]],1,0)   test_has_index([[ ({ "a", "b" }) ]],1,1)   test_has_index([[ ([ "a":"A" ]) ]],4711,0)   test_has_index([[ ([ "a":"A" ]) ]],"a",1)   test_has_index([[ ([ "a":"A" ]) ]],"A",0)   test_has_index([[ ([ "a":"A", "b":"B", "c":"C" ]) ]],"b",1)   test_has_index([[ ([ "a":"A", "b":"B", "c":"C" ]) ]],"B",0) -  + test_has_index([[ (< "a" >) ]],4711,0) + test_has_index([[ (< "a" >) ]],"a",1) + test_has_index([[ (< "a" >) ]],"A",0) + test_has_index([[ (< "a", "b", "c" >) ]],"b",1) + test_has_index([[ (< "a", "b", "c" >) ]],"B",0)   test_has_index([[ class {}() ]],"foo",0)   test_has_index([[ (class{array _indices(){return({"a","b"});}})() ]],"b",1)      // - has_value   define(test_has_value,[[test_true([[mixed foo=$1; return has_value(foo,$2)==$3;]])]])   test_has_value([[ ({}) ]],0,0)   test_has_value([[ ({}) ]],"foo",0)   test_has_value([[ ({ "a" }) ]],-1,0)   test_has_value([[ ({ "a" }) ]],"a",1)   test_has_value([[ ({ "a" }) ]],0,0)