pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:46:    return sizeof(Foo()->foo);]],1);      test_eq([["(" + 0x7fffffff + ")"]], "(2147483647)")   test_eq([["(" + -0x80000000 + ")"]], "(-2147483648)")   cond(0x8000000000000000, [[    test_eq([["(" + 0x7fffffffffffffff + ")"]], "(9223372036854775807)")    test_eq([["(" + -0x8000000000000000 + ")"]], "(-9223372036854775808)")   ]])   test_eq([["(" + Int.NATIVE_MAX + ")"]], [[sprintf ("(%d)", Int.NATIVE_MAX)]])   test_eq([["(" + Int.NATIVE_MIN + ")"]], [[sprintf ("(%d)", Int.NATIVE_MIN)]]) + test_eq([[Int.NATIVE_MAX]], [[(int) (Int.NATIVE_MAX + "")]]) + test_eq([[Int.NATIVE_MIN]], [[(int) (Int.NATIVE_MIN + "")]]) + test_eq([[(string) Int.NATIVE_MAX]], [[Int.NATIVE_MAX + ""]]) + test_eq([[(string) Int.NATIVE_MIN]], [[Int.NATIVE_MIN + ""]]) + test_eq([[(string) Int.NATIVE_MAX]], [[sprintf ("%d", Int.NATIVE_MAX)]]) + test_eq([[(string) Int.NATIVE_MIN]], [[sprintf ("%d", Int.NATIVE_MIN)]])      # __func__   test_eq(__func__, "a")   test_eq("b", __func__)      test_eq(8, 0b1000);   test_eq(-8, -0b1000);   test_eq(16, 0b10000);   test_eq(-16, -0b10000);   
pike.git/src/testsuite.in:599:    }))   ]], [[ "function(string : string)" ]])      // Test implicit lambda.   test_eq([[    `()(){ return 1; }   ]], 1)      // Argument checking    + // Test new_check_call. + test_eq([[ +  constant foo = 5; +  +  // Test that it survives a F_ARG_LIST with CAR == CDR. +  return foo%foo; + ]], 0) +    // 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()}));