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

version» Context lines:

pike.git/lib/modules/ADT.pmod/testsuite.in:1: - dnl $Id: testsuite.in,v 1.7 2003/03/08 19:39:43 nilsson Exp $ + dnl $Id: testsuite.in,v 1.8 2003/07/04 19:26:39 nilsson Exp $      dnl - ADT.History      test_eq(sizeof(ADT.History(2)),0)      test_do(add_constant("adth", ADT.History(2)))   test_eq(adth->get_maxsize(),2)   test_any([[    adth->push(17);    return sizeof(adth);
pike.git/lib/modules/ADT.pmod/testsuite.in:231:   test_do( add_constant("Test") )   test_any([[    class Test {    inherit ADT.Struct;    Item one = Byte(1);    Item two = Word();    Item three = Chars(3, "klm");    };    return (string)Test();   ]], "\1\0\0klm") + test_any([[ +  class Test { +  inherit ADT.Struct; +  Item a = Word(0x1234); +  Item b = Drow(0x1234); +  Item c = Long(0x12345678); +  Item d = Gnol(0x12345678); +  }; +  return (string)Test(); + ]], "\22""44\22\22""4VxxV4\22");         dnl - ADT.Table      test_true(ADT.Table.table(    ({ ({ "a", "b", 42 }),    ({ "c", "b", 41 }),    ({ "a", "a", 76 }) }),    ({ "X", "Y", "z" }))->select("x", 2)->sum("Z")->distinct(0)->rsort("X")    ->rename(0, "fOo")->sort("foO")->cast("array"),