diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-11-29 18:08:15 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-11-29 18:08:15 -0600 |
commit | f253ff9ea6aad9021b3a0d15449e8097d348402a (patch) | |
tree | 57945d958640771d6260c6deaf68c7d74db3257c /t | |
parent | acbc69c4f1ade78eb1d6f951cb6336af4297d996 (diff) | |
download | package-stash-f253ff9ea6aad9021b3a0d15449e8097d348402a.tar.gz package-stash-f253ff9ea6aad9021b3a0d15449e8097d348402a.zip |
make sure we don't get warnings about redefining symbols
Diffstat (limited to 't')
-rwxr-xr-x | t/edge-cases.t | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/edge-cases.t b/t/edge-cases.t index d1e5182..262c13b 100755 --- a/t/edge-cases.t +++ b/t/edge-cases.t @@ -80,4 +80,13 @@ SKIP: { ); } +{ + my $warning; + local $SIG{__WARN__} = sub { $warning = $_[0] }; + my $stash = Package::Stash->new('Bar'); + $stash->add_symbol('&foo' => sub { }); + $stash->add_symbol('&foo' => sub { }); + is($warning, undef, "no redefinition warnings"); +} + done_testing; |