File: bug-issue3.t

package info (click to toggle)
libdata-messagepack-stream-perl 1.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 192 kB
  • sloc: perl: 26; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# https://github.com/typester/Data-MessagePack-Stream/issues/3

use strict;
use warnings;
use Test::More;

plan tests => 1;

use Data::MessagePack::Stream;
use Data::MessagePack;

my $orig = [0,0,200,''];

my $packed = Data::MessagePack->new->pack($orig);

my $unpacker = Data::MessagePack::Stream->new;
$unpacker->feed($packed);
if ($unpacker->next) {
    is_deeply($unpacker->data, $orig);
}