mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-03 00:23:28 +01:00
perl: tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Data::MessagePack;
|
use Data::MessagePack;
|
||||||
use Test::More tests => 61;
|
use Test::More tests => 64;
|
||||||
use t::Util;
|
use t::Util;
|
||||||
|
|
||||||
my $input = [
|
my $input = [
|
||||||
@@ -36,6 +36,7 @@ is_deeply(Data::MessagePack->unpack($packed), $input);
|
|||||||
$offset = $up->execute($packed, $offset);
|
$offset = $up->execute($packed, $offset);
|
||||||
ok $up->is_finished, 'finished';
|
ok $up->is_finished, 'finished';
|
||||||
my $data = $up->data;
|
my $data = $up->data;
|
||||||
|
is scalar(@{$data}), scalar(@{$input}), 'size of @{$data}';
|
||||||
is_deeply $data, $input, "block $i, offset $offset";
|
is_deeply $data, $input, "block $i, offset $offset";
|
||||||
$up->reset();
|
$up->reset();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user