Skip to content

Commit

Permalink
t/op/delete.t: Suppress several warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed Jul 3, 2020
1 parent 593cec3 commit 3aad740
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions t/op/delete.t
Expand Up @@ -123,7 +123,10 @@ ok(!(exists $bar[6]),'g absent');
cmp_ok($foo[1],'eq','a','a still exists');
cmp_ok($foo[3],'eq','c','c still exists');

$foo = join('',@foo);
{
no warnings 'uninitialized';
$foo = join('',@foo);
}
cmp_ok($foo,'eq','ac','ary elems');
cmp_ok(scalar(@foo),'==',4,'four is the number thou shalt count');

Expand Down Expand Up @@ -151,8 +154,13 @@ cmp_ok( scalar(@{$refary[0]}),'==',1,'one down');
my @a = 33;
my($a) = \(@a);
my $b = \$a[0];
no strict 'subs';
my $c = \delete $a[bar];
my $c;
{
no strict 'subs';
no warnings 'numeric';
no warnings 'reserved';
$c = \delete $a[bar];
}

ok($a == $b && $b == $c,'a b c also equivalent');
}
Expand Down

0 comments on commit 3aad740

Please sign in to comment.