X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F10-good.t;h=6559b5410a41f3ffa53fce7d106b5e78157c24e3;hp=708397f73a9cd44126c4532acfd8af1b1edd1147;hb=faed8ab9b402954feb3efbffbb1ce53aafd53fc1;hpb=c52983a17fc61e02c319a9389c61c9c68319b492 diff --git a/t/10-good.t b/t/10-good.t index 708397f..6559b54 100644 --- a/t/10-good.t +++ b/t/10-good.t @@ -9,10 +9,13 @@ package main; use strict; use warnings; -use Test::More tests => 49 * 4; +use Test::More tests => 53 * 4; + +use feature 'state'; my ($obj, $pkg, $cb, $x, @a); our $y; +state $z; sub meh; { @@ -143,6 +146,10 @@ meh $y; #### meh $y, 1, 2; #### +meh $z; +#### +meh $z, 1, 2; +#### print; #### print $_; @@ -155,6 +162,10 @@ print $y; #### print $y "dongs\n"; #### +print $z; +#### +print $z "hlagh\n"; +#### print STDOUT "bananananananana\n"; #### $x->foo($pkg->$cb)