]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/10-good.t
Test good uses of our variables
[perl/modules/indirect.git] / t / 10-good.t
index e503cecde5ae03fd7bcefd8c186a3fd0ddc44585..d6b4a6aea32dcbfed5804272d67d3edc11429cbe 100644 (file)
@@ -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"