pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.699 2004/02/17 08:43:24 mirar Exp $"]]); + test_true([["$Id: testsuite.in,v 1.700 2004/02/28 20:22:02 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:313:      // las.c:find_return_type() checks.   test_eq([[    // Test case from Robert J. Budzynski <Robert.Budzynski@fuw.edu.pl>.    // When broken the return type will be mixed.    sprintf("%O", typeof(lambda(string s){    return Locale.Charset.decoder("utf-8")->feed(s)->drain();    }))   ]], [[ "function(string : string)" ]])    + // Argument checking +  + // Test get_all_args. + test_eval_error([[ +  // A trick to get some svalues to freed refcounted stuff on the stack. +  lambda (mixed a, mixed b, mixed c) {} (({time()}), ({time()}), ({time()})); +  // set_weak_flag is chosen since it calls get_all_args with an +  // argument spec that contains two arguments of different types. +  ([function] set_weak_flag)(); + ]]) + test_eval_error([[ +  lambda (mixed a, mixed b, mixed c) {} (({time()}), ({time()}), ({time()})); +  ([function] set_weak_flag) (17); + ]]) + test_eval_error([[ +  lambda (mixed a, mixed b, mixed c) {} (({time()}), ({time()}), ({time()})); +  ([function] set_weak_flag) ("foo"); + ]]) + test_eval_error([[ +  lambda (mixed a, mixed b, mixed c) {} (({time()}), ({time()}), ({time()})); +  ([function] set_weak_flag) (17, "foo"); + ]]) +    // type checks      define(test_type_error, [[    test_compile_error([[ $1 x; x=$3; ]])    test_compile_error_any([[ class ErrBa { $1 x() { return $3; } } ]])    test_compile_error_any([[ class ErrBa { $1 x() { $2 a=$3; return a; } } ]])   ]])      test_type_error(int,float,17.23)   test_type_error(int,array,({1,2,3}))