X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-good.t;h=708397f73a9cd44126c4532acfd8af1b1edd1147;hb=aac0ea8cc9209c97ac63df35a99f4afc30388d2b;hp=388f8a049d5bc915a27a8bbd67fbf5e3f8abcdf5;hpb=0211e9efff1d599a979106005c9d3f14cdfbe2cf;p=perl%2Fmodules%2Findirect.git diff --git a/t/10-good.t b/t/10-good.t index 388f8a0..708397f 100644 --- a/t/10-good.t +++ b/t/10-good.t @@ -9,15 +9,17 @@ package main; use strict; use warnings; -use Test::More tests => 41 * 4; +use Test::More tests => 49 * 4; my ($obj, $pkg, $cb, $x, @a); +our $y; sub meh; { local $/ = "####\n"; while () { chomp; + s/\s*$//; local $SIG{__WARN__} = sub { die 'warn:' . join(' ', @_) }; { use indirect; @@ -129,16 +131,32 @@ $obj = new $x }(qw/bar baz/); #### +meh; +#### +meh $_; +#### meh $x; #### -meh $x, 1 , 2; +meh $x, 1, 2; +#### +meh $y; +#### +meh $y, 1, 2; #### print; #### -print STDOUT "bananananananana\n"; +print $_; +#### +print $x; #### print $x "oh hai\n"; #### +print $y; +#### +print $y "dongs\n"; +#### +print STDOUT "bananananananana\n"; +#### $x->foo($pkg->$cb) #### $obj = "apple ${\(new Hlagh)} pear"