mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-02 14:03:43 +01:00
Perl: better argument validation(patch from dankogai)
This commit is contained in:
@@ -2,7 +2,7 @@ use t::Util;
|
||||
use Test::More;
|
||||
use Data::MessagePack;
|
||||
|
||||
plan tests => 5;
|
||||
plan tests => 6;
|
||||
|
||||
my $aref = [0];
|
||||
$aref->[1] = $aref;
|
||||
@@ -23,3 +23,6 @@ ok !$@;
|
||||
|
||||
eval { Data::MessagePack->pack($aref, 2) };
|
||||
ok $@, $@;
|
||||
|
||||
eval { Data::MessagePack->pack($aref, -1) };
|
||||
ok $@, $@;
|
||||
|
||||
Reference in New Issue
Block a user