]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
More tests with $_
authorVincent Pit <vince@profvince.com>
Wed, 15 Oct 2008 17:26:09 +0000 (19:26 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 15 Oct 2008 17:26:57 +0000 (19:26 +0200)
t/10-good.t
t/20-bad.t

index 388f8a049d5bc915a27a8bbd67fbf5e3f8abcdf5..e503cecde5ae03fd7bcefd8c186a3fd0ddc44585 100644 (file)
@@ -9,7 +9,7 @@ package main;
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use Test::More tests => 41 * 4;
+use Test::More tests => 45 * 4;
 
 my ($obj, $pkg, $cb, $x, @a);
 sub meh;
 
 my ($obj, $pkg, $cb, $x, @a);
 sub meh;
@@ -129,12 +129,20 @@ $obj = new
       $x
     }(qw/bar baz/);
 ####
       $x
     }(qw/bar baz/);
 ####
+meh;
+####
+meh $_;
+####
 meh $x;
 ####
 meh $x;
 ####
-meh $x, 1 , 2;
+meh $x, 1, 2;
 ####
 print;
 ####
 ####
 print;
 ####
+print $_;
+####
+print $x;
+####
 print STDOUT "bananananananana\n";
 ####
 print $x "oh hai\n";
 print STDOUT "bananananananana\n";
 ####
 print $x "oh hai\n";
index 0a61cd1917454c16db0c84054042650389d4a6c3..226a2fccb258dd3fb8938324fa586804dd6a02cd 100644 (file)
@@ -9,7 +9,7 @@ package main;
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use Test::More tests => 33 * 4 + 2;
+use Test::More tests => 36 * 4 + 2;
 
 my ($obj, $x);
 
 
 my ($obj, $x);
 
@@ -110,8 +110,14 @@ $obj = new $_      qr/foo/  ;
 ####
 $obj = new $_     qq(bar baz);
 ####
 ####
 $obj = new $_     qq(bar baz);
 ####
+meh $_;
+####
+meh $_ 1, 2;
+####
 meh $x;
 ####
 meh $x;
 ####
+meh $x 1, 2;
+####
 meh $x, 1, 2;
 ####
 new Hlagh->wut;
 meh $x, 1, 2;
 ####
 new Hlagh->wut;