From: Vincent Pit Date: Tue, 5 Aug 2008 21:55:30 +0000 (+0200) Subject: Add tests for delete X-Git-Tag: v0.03~21 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=commitdiff_plain;h=c38c23a2c58ba8368464423760768887bfc6731f Add tests for delete --- diff --git a/t/24-ops.t b/t/24-ops.t index 28e86e8..f3f62f4 100644 --- a/t/24-ops.t +++ b/t/24-ops.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 32; +use Test::More tests => 34; use Sub::Nary; @@ -12,6 +12,9 @@ my $sn = Sub::Nary->new(); my ($x, %h); my @tests = ( + [ sub { delete $h{foo} }, 1 ], + [ sub { delete @h{qw/foo bar baz/} }, 3 ], + [ sub { return <$x> }, 'list' ], [ sub { -f $0, -r $0 }, 2 ],