pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.828 2008/06/26 09:30:03 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.829 2008/06/27 12:53:27 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:4709:   ignore_warning("Bad argument 2 to m_delete.", [[   ignore_warning("Expected: string.", [[   ignore_warning("Got : int(17..17).", [[   test_any([[   #pike 7.6    mapping(string:int) x = ([]);    return zero_type (m_delete (x, 17));   ]], 1)   ]])]])]])    - // m_generation - test_do([[ add_constant("m", ([])); ]]) - test_false(m_generation(m)); - test_any([[ -  mapping m = all_constants()->m; -  m->foo = 1; -  m->bar = 2; -  return m_generation(m); - ]], 1) - test_eq(m_generation(m), 1) - test_any([[ -  mapping m = all_constants()->m; -  m->foo = 3; -  return m_generation(m); - ]], 2) - test_any([[ -  mapping m = all_constants()->m; -  m_delete(m, "gazonk"); -  return m_generation(m); - ]], 2) - test_any([[ -  mapping m = all_constants()->m; -  m_delete(m, "bar"); -  return m_generation(m); - ]], 3) - test_any([[ -  mapping m = all_constants()->m; -  m_delete(m, "foo"); -  return m_generation(m); - ]], 4) - test_equal(m, ([])); - test_eq(m_generation(([])), 0) - test_do(add_constant("m")); -  +    // multiset tests      test_any([[multiset m=(<>);int e;    for(e=0;e<1000;e++) m[e]=1;    for(e=0;e<1000;e++) if(!m[e]) return e;    return -1;   ]],-1)      test_any([[multiset m=(<>);int e;    for(e=0;e<1000;e++) m[e]++;