File: 002_constants.t

package info (click to toggle)
libsereal-encoder-perl 4.018%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,284 kB
  • sloc: ansic: 11,838; perl: 6,004; sh: 25; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!perl
use strict;
use warnings;
use File::Spec;
use lib File::Spec->catdir(qw(t lib));

BEGIN {
    lib->import('lib')
        if !-d 't';
}
use Sereal::TestSet;
use Sereal::Encoder qw(encode_sereal);
use Sereal::Encoder::Constants qw(:all);

# Test a couple of the basic constants

use Test::More tests => 2;

is( SRL_MAGIC_STRING, "=srl", "check magic string" );
is( SRL_HDR_UNDEF,    37,     "check arbitrary header constant" );