From: Vincent Pit Date: Wed, 15 Oct 2008 17:28:19 +0000 (+0200) Subject: Test good uses of our variables X-Git-Tag: v0.07_02~5 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=commitdiff_plain;h=a500e2e4c8ada4bd4c2cd5c76d2ac15214b42048 Test good uses of our variables --- diff --git a/t/10-good.t b/t/10-good.t index e503cec..d6b4a6a 100644 --- a/t/10-good.t +++ b/t/10-good.t @@ -9,9 +9,10 @@ package main; use strict; use warnings; -use Test::More tests => 45 * 4; +use Test::More tests => 49 * 4; my ($obj, $pkg, $cb, $x, @a); +our $y; sub meh; { @@ -137,16 +138,24 @@ meh $x; #### meh $x, 1, 2; #### +meh $y; +#### +meh $y, 1, 2; +#### print; #### print $_; #### print $x; #### -print STDOUT "bananananananana\n"; -#### print $x "oh hai\n"; #### +print $y; +#### +print $y "dongs\n"; +#### +print STDOUT "bananananananana\n"; +#### $x->foo($pkg->$cb) #### $obj = "apple ${\(new Hlagh)} pear"