]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - t/13-padsv.t
Move the last tests of t/13-padsv.t to t/10-base.t
[perl/modules/Lexical-Types.git] / t / 13-padsv.t
index 8061e90456cf475a2273c51f5485c06bf7e5a503..e5409bc5ca446f73c728ceae03fb8315c85977de 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 7;
+use Test::More tests => 3;
 
 sub Str::TYPEDSCALAR {
  my $buf = (caller(0))[2];
@@ -25,20 +25,3 @@ sub Str::TYPEDSCALAR {
  my $z = 7;
  is $z, 7, 'trick for others';
 }
-
-my $count;
-sub Int::TYPEDSCALAR { return ++$count }
-
-{ package INT; }
-
-{
- use Lexical::Types as => sub { $_[0] eq 'Int' ? @_ : () };
-
- my Int ($x, $y);
- is $x, 1, 'successive padany 1';
- is $y, 2, 'successive padany 2';
-
- my INT ($z, $t);
- is $z, undef, 'successive padany 3';
- is $t, undef, 'successive padany 4';
-}