#!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('snappy_canon', { snappy => 1, canonical => 1 } );
}
pass();
done_testing();