X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-good.t;h=0f482a55cf0a3bce2d3026b11fa39457e8215261;hb=0cc2d6ec622415ec5a39849d0837097c69c73eb5;hp=d428d1fdf600d79f0ea08d7d9c12f93ab5fe33d5;hpb=50cf1763d6570e6589e3e809aede60d7e3f1912e;p=perl%2Fmodules%2Findirect.git diff --git a/t/20-good.t b/t/20-good.t index d428d1f..0f482a5 100644 --- a/t/20-good.t +++ b/t/20-good.t @@ -9,11 +9,12 @@ package main; use strict; use warnings; -use Test::More tests => 52 * 4; +use Test::More tests => 56 * 4; my ($obj, $pkg, $cb, $x, @a); our $y; sub meh; +sub try (&); { local $/ = "####"; @@ -86,6 +87,14 @@ $obj = Hlagh -> , bar => $obj ); #### +$obj = new->new; +#### +$obj = new->new; # new new +#### +$obj = new->newnew; +#### +$obj = newnew->new; +#### $obj = Hlagh->$cb; #### $obj = Hlagh->$cb(); @@ -121,21 +130,6 @@ $obj = $pkg->$cb( $obj ); #### $obj = $pkg->$cb(qw/foo bar baz/); #### -$obj = new { $x }; -#### -$obj = new - { - $x } - (); -#### -$obj = new { - $x } qq/foo/; -#### -$obj = new - { - $x - }(qw/bar baz/); -#### meh; #### meh $_; @@ -183,3 +177,11 @@ exec { $a[0] } @a; system $x $x, @a; #### system { $a[0] } @a; +#### +try { }; +#### +try { 1; }; +#### +try { 1; 1; }; +#### +try { try { }; 1; };