pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:8051:   test_true(a) // a is the test function   test_true(0.0)   test_true(([]))   test_true(({}))   test_true((<>))   test_true(object_program(this_object()))      // testing !   test_equal(!"",0)   test_equal(!this_object(),0) - test_equal( - #pike 7.0 - !Simulate.this_function(),0) +       // testing ==   test_true(1==1)   test_true(!(1==2))   test_true(""=="")   test_true(!(""=="foo"))   test_true(this_object()==this_object()) - test_true( - #pike 7.0 - Simulate.this_function()==a) +    test_true(2.0==2.0)   test_true(({})==({}))      // testing !=   test_true(({1})!=({1}))   test_true(1!=2)   test_true(!(1==2))   test_true(!(""!=""))   test_true(""!="foo")   
pike.git/src/testsuite.in:10170:   ]])      test_compile_warning([[   #pragma no_deprecation_warnings   #pragma deprecation_warnings   class A {   nomask int x;   }   ]])    -  - // #include - test_compile_any([[ - #pike 7.0 - #include <simulate.h> - ]]) -  +    // #error   test_compile_error([[   #error Gurgel   ]])      // #warning   test_compile_warning([[   #warning Gurgel   ]])   
pike.git/src/testsuite.in:12587:      test_program(inherit test; inherit test2; mixed a() { w=20; b=22; return getw()==20 && getb()==22; })   test_program(inherit test; inherit test2; mixed a() { setw(20); setb(22); return w==20 && b==22; })   test_program(inherit test2; inherit test; mixed a() { w=20; b=22; return getw()==20 && getb()==22; })   test_program(inherit test2; inherit test; mixed a() { setw(20); setb(22); return w==20 && b==22; })      test_do(add_constant("test"))   test_do(add_constant("test2"))      test_eval_error(return class c{int i;void foo(){ destruct(this_object());i=0;return i;}}()->foo()) -  - // - get_function (actually in simulate.pike) - test_eq(a, - #pike 7.0 - Simulate.get_function(this_object(),"a")) +    test_eq(a,this_object()->a)      // - catch   test_false([[class X { string test(string foo) { catch { return lower_case(foo); }; return foo; }}()->test(0); ]])   test_true([[catch (1.0 / 0.0)]])   test_true([[catch {float f = 1.0 / 0.0;}]])         // Pike modules