pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.663 2003/08/03 01:03:06 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.664 2003/08/05 12:59:21 mast 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:8364:   test_equal([[glob("foo*bar",({"foobar","foobargazonk","","foofoobar","fobar","fooar"}))]],[[({"foobar","foofoobar"})]])      // - gmtime   cond([[all_constants()->localtime && all_constants()->mktime]],[[    test_do([[int t = -1; catch(gmtime(t));]])   ]])      // - hardlink      // - 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_prefix   test_true(has_prefix("abc","a"))   test_false(has_prefix("abc","b"))   test_true(has_prefix("abc",""))   test_true(has_prefix("",""))   test_false(has_prefix("","abc"))   test_true(has_prefix("\666abc","\666a"))