pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.797 2008/01/29 17:54:17 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.798 2008/01/29 20:47:29 grubba 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:1604:   test_false([[object_variablep(class X { int y; int z() { return 1; }}(),"foo")]])   test_false([[object_variablep(class X { int y; int z() { return 1; }}(),"z")]])   test_true([[object_variablep(class X { int y; int z() { return 1; }}(),"y")]])      test_any([[ int a,b; [a,b]=({1,2}); return a]],1)   test_any([[ int a,b; [a,b]=({1,2}); return b]],2)   test_any([[ int a,b; [ [a],b]=({ ({ 1 }) ,2}); return a]],1)   test_any([[ int a,b; [ [a],b]=({ ({ 1 }) ,2}); return b]],2)   test_any([[ int a; catch { [a]=({1,2}); return 0; }; return 1]],1)   test_compile_error([[ int a,b; catch { [a,b]=({1}); return 0; }; return 1]],1) - test_any([[ int a,b; catch { [a,b]=lambda(){ return ({1}); }() return 0; }; return 1]],1) + test_any([[ int a,b; catch { [a,b]=lambda(){ return ({1}); }(); return 0; }; return 1]],1)   test_any([[ mapping m=([]); m[m]=m; return stringp(sprintf("%O",m)); ]],1)   dnl test_any([[   dnl // don't know if this /should/ be valid /Mirar   dnl // remove if it shouldn't   dnl   dnl // I see no reason this should be allowed - Hubbe   dnl   dnl array a=({});   dnl []=a; return 1; ]],1)