pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:892:       return ({ foo(), foo(UNDEFINED), foo(0), foo(18), foo(18, UNDEFINED),    foo(18, 0), foo(0, 18), foo(UNDEFINED, UNDEFINED), foo(0, 0),    foo(18, 19), foo(UNDEFINED, 18) })->bar;   ]], ({ 34, 34, 0, 36, 36,    18, 18, 34, 0,    37, 35 }))      dnl Multi-assign in function calls.   test_any([[ +  class Foo {    // Lifted from issue #10098.    int add([int a, int b], int c) { return a + b + c; } -  +  } +  return Foo()->add(({ 1, 2 }), 3); + ]], 6) + test_any([[ +  // Lifted from issue #10098. +  int add([int a, int b], int c) { return a + b + c; }    return add(({ 1, 2 }), 3);   ]], 6)   test_equal([[ -  lambda(int a, [int b, int c, [int e, int f]], int d){ +  lambda(int a, [int b, int c, [int e, int f] ], int d){    return ({ a, b, c, d, e, f });    }(1, ({ 3, 4, ({ 5, 6 }) }), 7);   ]], ({ 1, 3, 4, 7, 5, 6 }))   test_equal([[    lambda(int a, [int b, int c], int d){    return ({ a, b, c, d });    }(1, ({ 2, 3 }), 4);   ]], ({ 1, 2, 3, 4 }))   test_equal([[    lambda(int a, [int b, int c] = ({ 5, 6 }), int d = 10){