| 1 |
#!perl |
| 2 |
use strict; |
| 3 |
use warnings; |
| 4 |
use Data::Dumper; |
| 5 |
use File::Spec; |
| 6 |
|
| 7 |
use lib File::Spec->catdir(qw(t lib)); |
| 8 |
|
| 9 |
BEGIN { |
| 10 |
lib->import('lib') |
| 11 |
if !-d 't'; |
| 12 |
} |
| 13 |
|
| 14 |
use Sereal::TestSet qw(:all); |
| 15 |
use Test::More; |
| 16 |
|
| 17 |
my $ok = have_encoder_and_decoder(); |
| 18 |
$ok = 0 if $ok and $Sereal::Encoder::VERSION < 3.001006; |
| 19 |
if ( not $ok ) { |
| 20 |
plan skip_all => 'Did not find right version of encoder (want 3.001006)'; |
| 21 |
} |
| 22 |
else { |
| 23 |
run_roundtrip_tests( "plain_canonical", { canonical => 1 } ); |
| 24 |
} |
| 25 |
|
| 26 |
pass(); |
| 27 |
done_testing(); |
| 28 |
|