X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fmethod.t;h=aaf29be8df1d88f7d61b278ccd5ed0255226fe69;hb=bd7d4f4d586a396d1b104a293cce339c8d63ce5a;hp=46c111946a36dfc40953d20798ec183e4102a962;hpb=e189a56d832d31da4b6bb0fcf7dfde76e1fc4b24;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/method.t b/t/op/method.t index 46c1119..aaf29be 100755 --- a/t/op/method.t +++ b/t/op/method.t @@ -10,7 +10,7 @@ BEGIN { require "test.pl"; } -print "1..75\n"; +print "1..78\n"; @A::ISA = 'B'; @B::ISA = 'C'; @@ -231,7 +231,7 @@ is( Foo->boogie(), "yes, sir!"); # This is actually testing parsing of indirect objects and undefined subs # print foo("bar") where foo does not exist is not an indirect object. # print foo "bar" where foo does not exist is an indirect object. -eval { sub AUTOLOAD { "ok ", shift, "\n"; } }; +eval 'sub AUTOLOAD { "ok ", shift, "\n"; }'; ok(1); # Bug ID 20010902.002 @@ -277,3 +277,19 @@ sub Bminor::test { Bminor->test('y', 'z'); is("@X", "Amajor Bminor x y Bminor Bminor y z"); +package main; +for my $meth (['Bar', 'Foo::Bar'], + ['SUPER::Bar', 'main::SUPER::Bar'], + ['Xyz::SUPER::Bar', 'Xyz::SUPER::Bar']) +{ + fresh_perl_is(<$meth->[0](); +EOT + "Foo $meth->[1]", + { switches => [ '-w' ] }, + "check if UNIVERSAL::AUTOLOAD works", + ); +}