diff --git a/perl/t/03_stream_unpack.t b/perl/t/03_stream_unpack.t index 0a8d7d9b..a4ab4eba 100644 --- a/perl/t/03_stream_unpack.t +++ b/perl/t/03_stream_unpack.t @@ -23,10 +23,21 @@ sub pis ($$) { my @dat = do 't/data.pl'; -plan tests => 1*(scalar(@dat)/2) + 1; +plan tests => 1*(scalar(@dat)/2) + 3; isa_ok $up, 'Data::MessagePack::Unpacker'; for (my $i=0; $inew(); + $up->execute("\x95", 0); # array marker + for (1..5) { + $up->execute("\xc0", 0); # nil + } + ok $up->is_finished; + is_deeply $up->data, [undef, undef, undef, undef, undef]; +} +