pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.766 2006/06/16 16:32:24 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.767 2006/07/07 18:10:45 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:4648:    destruct (o1), destruct (o2), destruct (o3);    return copy_value (m);   ]], (<17>));      test_do([[    multiset a = copy_value ((<(<1,2,3>), ({5,4}), ([1:2]), 1, ({}), (<1,2>), "foo">));    foreach (a; mixed i;)    if (!a[i]) error ("Can't find multiset member in itself: %O\n", i);   ]])    + test_any_equal([[ +  multiset m=(<"Stone","2","%70">); +  foreach(m;string k;) +  { +  if(k=="%70") +  { +  m[k]=0; +  break; +  } +  } +  return sort ((array) (m - (<>))); + ]], ({"2", "Stone"})) +    // mapping tests      test_any([[mapping m=([]);int e;    for(e=0;e<1000;e++) m[e]=e;    for(e=0;e<1000;e++) if(m[e]!=e) return 0;    return 1;   ]],1)      test_any([[mapping m=([]);int e;    for(e=0;e<1000;e++) m[e]=e;