X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F20-good.t;h=85f1900ddbe8e7133b82a1fab3438c9f749ae643;hp=f883537209281af88d55b32ce0e2bde45a3ed6d6;hb=168f6fe27525f9fa5bd50b032e1e601b506abb16;hpb=6dcc20b6e77e55bd8b635d42663ec99ecf42bad2 diff --git a/t/20-good.t b/t/20-good.t index f883537..85f1900 100644 --- a/t/20-good.t +++ b/t/20-good.t @@ -9,7 +9,7 @@ package main; use strict; use warnings; -use Test::More tests => 80 * 8; +use Test::More tests => 86 * 8; BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} } @@ -240,18 +240,30 @@ $obj = "apple @{[$x->$meth]} pear" $obj = "apple ${\($y->$meth)} pear" #### $obj = "apple @{[$y->$meth]} pear" -#### -$obj = "apple ${\(new Hlagh)} pear" -#### -$obj = "apple @{[new Hlagh]} pear" -#### -$obj = "apple ${\(new $x)} pear" -#### -$obj = "apple @{[new $x]} pear" -#### -$obj = "apple ${\(new $y)} pear" -#### -$obj = "apple @{[new $y]} pear" +#### # local $_ = "foo"; +s/foo/return; Hlagh->new/e; +#### # local $_ = "bar"; +s/foo/return; Hlagh->new/e; +#### # local $_ = "foo"; +s/foo/return; Hlagh->$cb/e; +#### # local $_ = "bar"; +s/foo/return; Hlagh->$cb/e; +#### # local $_ = "foo"; +s/foo/return; Hlagh->$meth/e; +#### # local $_ = "bar"; +s/foo/return; Hlagh->$meth/e; +#### # local $_ = "foo"; +s/foo/return; $pkg->new/e; +#### # local $_ = "bar"; +s/foo/return; $pkg->new/e; +#### # local $_ = "foo"; +s/foo/return; $pkg->$cb/e; +#### # local $_ = "bar"; +s/foo/return; $pkg->$cb/e; +#### # local $_ = "foo"; +s/foo/return; $pkg->$meth/e; +#### # local $_ = "bar"; +s/foo/return; $pkg->$meth/e; #### exec $x $x, @a; ####