pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.591 2003/09/09 16:58:30 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.592 2003/09/11 19:23:54 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:6399:    return sizeof(m);   ]],0)      test_any([[    mapping m=([1:2,3:5,7:11,13:17]);    int ret;    foreach(m ; int a ; int b) { m_delete(m,a); ret+=a*b; }    return ret;   ]],315)    + test_any([[ +  String.Iterator iter = String.Iterator ("foo"); +  foreach (iter; int idx;) +  if (idx != iter->index()) return 1; +  return 0; + ]], 0) +    // do-while   test_any(int e;string t=""; e=0; do{ t+=e; }while(++e<6); return t,"012345";)      // while   test_any(int e;string t=""; e=8; while(--e) t+=e; return t,"7654321";)   test_any(int e;string t=""; e=8; while(e--) t+=e; return t,"76543210";)   test_any(int e;string t=""; e=0; while(++e<6) t+=e; return t,"12345";)   test_any(int e=1;string t=""; while(e<20){t+=e;e*=2;} return t,"124816";)      // Switch