pike.git / lib / modules / ADT.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/ADT.pmod/testsuite.in:1:   START_MARKER - dnl $Id: testsuite.in,v 1.15 2004/05/02 18:26:43 nilsson Exp $ + dnl $Id: testsuite.in,v 1.16 2004/06/20 23:23:04 nilsson Exp $      dnl - ADT.BitBuffer      test_do( add_constant( "B", ADT.BitBuffer() ) )   test_eq( B->drain(), "" )   test_eq( B->feed(""), B )   test_eval_error( B->feed("\400") )   test_eq( B->drain(), "" )   test_eq( sizeof(B), 0 )   
pike.git/lib/modules/ADT.pmod/testsuite.in:97:   test_do( adth->set_no_adjacent_duplicates(0), 0)   test_do( adth->push(26) )   test_do( adth->push(26) )   test_eq(adth[-2],26)   test_do( adth[-1]=27 )   test_equal(indices(adth),[[ ({9,10}) ]])   test_equal(values(adth),[[ ({26,27}) ]])   test_do(add_constant("adth"))       + dnl - ADT.Priority_queue    -  + test_eval_error( ADT.Priority_queue()->pop(); ) + test_any([[ +  object q=ADT.Priority_queue(); +  q->push(1,"a"); +  return q->pop(); + ]], "a") + test_any([[ +  object q=ADT.Priority_queue(); +  q->push(1,"a"); +  q->push(2,"b"); +  return q->pop(); + ]], "a") + test_any([[ +  object q=ADT.Priority_queue(); +  q->push(2,"a"); +  q->push(1,"b"); +  return q->pop(); + ]], "b") +  +    dnl - ADT.Stack      test_any([[    object s = ADT.Stack();    s->push(1);    return s->pop();   ]], 1)      test_eval_error(return ADT.Stack()->pop())