File: plain_canon.t

package info (click to toggle)
libsereal-decoder-perl 5.004%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,556 kB
  • sloc: ansic: 11,615; perl: 6,938; sh: 25; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (42)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!perl
use strict;
use warnings;
use Data::Dumper;
use File::Spec;

use lib File::Spec->catdir(qw(t lib));

BEGIN {
    lib->import('lib')
        if !-d 't';
}

use Sereal::TestSet qw(:all);
use Test::More;

my $ok= have_encoder_and_decoder();
$ok= 0 if $ok and $Sereal::Encoder::VERSION < 3.001006;
if ( not $ok ) {
    plan skip_all => 'Did not find right version of encoder (want 3.001006)';
}
else {
    run_roundtrip_tests( "plain_canonical", { canonical => 1 } );
}

pass();
done_testing();