pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.738 2004/09/20 12:12:13 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.739 2004/10/06 18:40:53 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:10279:   // - zero_type   test_eq(zero_type(0),0)   test_eq(zero_type(([])[7]),1)   test_eq(zero_type(UNDEFINED), 1)      test_true([[lambda (int|void a) { return zero_type(a); }()]])   test_true([[lambda () {mixed a; return zero_type(a = ([])[0]);}()]])   test_true([[lambda () {mapping a=([]); return zero_type(a[0] = ([])[0]);}()]])   test_true([[zero_type (lambda () {return ([])[0];}())]])    + test_any([[ +  int i = lambda() {return UNDEFINED;}(); +  lambda (int x) {} (i += 17); +  return zero_type (i); + ]], 0) + test_any([[ +  int i = lambda() {return UNDEFINED;}(); +  lambda (int x) {} (i -= 17); +  return zero_type (i); + ]], 0) + test_any([[ +  int i = lambda() {return UNDEFINED;}(); +  lambda (int x) {} (i++); +  i++; +  return zero_type (i); + ]], 0) + test_any([[ +  int i = lambda() {return UNDEFINED;}(); +  lambda (int x) {} (i--); +  return zero_type (i); + ]], 0) + test_any([[ +  int i = lambda() {return UNDEFINED;}(); +  return zero_type (-i); + ]], 0)            test_program(int b=10; mixed a() { return 1; })   test_program(mixed b=10; mixed a() { return 1;})   test_define_program(test,[[int q,w,e,r,t; mixed foo() { return 10; }]])      test_program(inherit test; mixed a() { return foo()==10; })   test_program(inherit test; mixed a() { return test::foo()==10; })   test_program(inherit test : bar; mixed a() { return bar::foo()==10; })