pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.842 2008/07/18 09:18:21 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.843 2008/07/18 11:29:21 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:7689:    return (string) x;   ]], "0")      test_eq([[(string) ({0,1,2})]], "\0\1\2")   test_eq([[(string) ({'z', 0xff, '.'})]], "z\xff.")   test_eq([[(string) ({'z', 0x100, '.'})]], "z\x100.")   test_eq([[(string) ({'z', 0xffff, '.'})]], "z\xffff.")   test_eq([[(string) ({'z', 0x10000, '.'})]], "z\x10000.")   test_eq([[(string) ({'z', -1, '.'})]], "z\xffffffff.")   test_eq([[(string) ({'z', 0x7fffffff, '.'})]], "z\x7fffffff.") - test_eval_error([[return (string) ({0x80000000})]]) + test_eval_error([[(string) ({0x80000000})]])   test_eq([[(string) ({'z', -0x80000000, '.'})]], "z\x80000000.") - test_eval_error([[return (string) ({-0x80000001})]]) + test_eval_error([[(string) ({-0x80000001})]])      // testing @   test_equal(({1,2,3}),lambda(mixed ... x) { return x; }(@a()))   test_equal("foo"/"",lambda(mixed ... x) { return x; }(@a()))   test_any([[array a=({1,2,3}); return lambda(mixed ... x) { return x; }(@a) !=a]],1)   test_any([[array z=({lambda(mixed x){return x;},17});return `()(@z);]],17)      // testing +=   test_any(int a=1; a+=10; return a,11)   test_any_equal(mapping m=([]); m->x+=([]); return m->x, ([]))