pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:4493:   test_any([[class { inherit GURKA2.bar; }(); return GURKA2->c;]],17)   test_any([[class { inherit GURKA2.bar; }(); return GURKA2->c;]],34)   test_do([[add_constant("GURKA2");]]);      test_eq(class { protected int foo=17; }()->foo,0)   test_eval_error(class c { protected int foo=17; }()->foo=18;)   test_equal( [[ ({ (["foo":"bar"]), (<"foo">), ([]) })->foo ]], [[ ({"bar",1,0}) ]])   test_any([[mixed a=({([]),0}); a[1]=a; return a->foo[0];]],0)   test_eval_error([[return column(({0}),"foo");]])    - test_equal([[ ({ })->foo ]], ({ })) + test_equal([[ ((mixed)({ }))->foo ]], ({ })) + test_compile_error([[ ({})->foo; ]])   test_equal([[ `->(({ }), "foo") ]], ({ })) - test_equal([[ ({ })["foo"] ]], ({ })) + test_equal([[ ((mixed)({ }))["foo"] ]], ({ })) + test_compile_error([[ ({})["foo"]; ]])      test_any([[   class A { constant a=0; int foo() { return a; } };   class B { inherit A; constant a=1; };   return B()->foo(); ]], 1)      test_any([[   class p1 { int foo() { return 1; }};   class p2 { int foo() { return 3; }};   class c1 { inherit p1; inherit p2; int foo() { return p1::foo()+p2::foo(); }};