File: 180_magic_array.t

package info (click to toggle)
libsereal-encoder-perl 5.004%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,384 kB
  • sloc: ansic: 12,087; perl: 6,049; sh: 25; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl

use strict;
use warnings;

use Sereal::Encoder;
use Test::More tests => 1;

my $srl_encoder= Sereal::Encoder->new( { no_shared_hashkeys => 1 } );

my @array;
$array[0]= 1;
$array[3]= 1;
my $last_index= $#array;

my $str= $srl_encoder->encode( \@array );

# if segfaul script is dropped unless pass() test
pass();