pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.573 2002/11/29 23:01:31 nilsson Exp $"]]); + test_true([["$Id: testsuite.in,v 1.574 2002/12/01 01:33:31 nilsson 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:7939:   test_true(crypt("hej",crypt("hej")))   test_true(crypt("hej","Oz5i0K.16qkgA"))   test_true(crypt("hej","buf8/Z7taE6qs"))   test_true(crypt("123456789", crypt("123456780")))   test_false(crypt("hej","hej"))   test_false(crypt("h","hej"))   test_false(crypt("hej","buf8/Z7taE6qst"))   test_false(crypt("hej","buf8/Z7taE6q"))      // - ctime - test_eq(ctime(0)[0],'\n') + test_eq(ctime(0)[-1],'\n')      // - destruct   test_do(add_constant("PROG",compile_string("int foo() { return 1; }")));   test_any([[object o=PROG(); destruct(o); return o]],0);   test_any([[object o=PROG(); destruct(o); return objectp(o)]],0);   test_any([[array(object) o=({PROG()}); destruct(o[0]); return o-({0}) ]],({}));   test_any([[mapping o=(["foo":PROG()]); destruct(o["foo"]); return o["foo"]; ]],0);   dnl test_any([[object t; mapping o=([t=PROG():"foo"]); destruct(t); return sizeof(o)]],0);   test_do([[object t; array(object) o=({}); o+=({t=PROG()}); destruct(t); o=({});]]);   test_do(add_constant("PROG"))