pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:10790:    add_constant("A",A);   ]])   test_eq(`-(A(5),A(2))->x, 3)   test_eq(`-(A(5),A(2),A(1))->x, 2)   test_eval_error([[    class B {}    `-(B(),A(5));   ]])   test_do(add_constant("A"));    + test_do([[ +  class A (int x) { mixed `-(mixed y) { return this_program(-x); } }; +  add_constant("A",A); + ]]) + test_eq(`-(A(5))->x, -5) + test_eval_error([[ +  class B {}; +  return `-(B()); + ]]) + test_do(add_constant("A")); +  +    // - `->   // - `->=   // - `/   // - `<   // - `<<   // - `<=   // - `==   // - `>   // - `>=   // - `>>
pike.git/src/testsuite.in:10832:   test_eq(`|(A(3),A(6))->x, 7)   test_eq(`|(A(3),A(6),A(9))->x, 15)   test_eval_error([[    class B {}    `|(B(),A(5));   ]])   test_do(add_constant("A"));      // - `~    + test_do([[ +  class A (int x) { mixed `~() { return this_program(~x); } }; +  add_constant("A",A); + ]]) + test_eq(`~(A(5))->x, -6) + test_eval_error([[ +  class B {}; +  return `-(B()); + ]]) + test_do(add_constant("A")); +    // - abs   // - acos   // Tested in _math      // - add_constant   test_compile_error(int a=grunk(5);)   test_do(add_constant("grunk",abs))   test_do(int a=grunk(5);)   test_do(add_constant("grunk"))   test_compile_error(int a=grunk(5);)