8
# These tests use an installed Decoder (or respectively Encoder) to do
9
# round-trip testing. There are two strategies, both with drawbacks:
10
# - Test::More's is_deeply is waaaay too lenient to catch all the
11
# subtleties that Sereal is supposed to encode.
12
# - Serialize - Deserialize - Serialize, then do a string compare.
13
# This won't catch if the first serialization has bogus output
14
# but the subsequent de- & serialization work for the already
16
# These tests can't replace carefully crafted manual tests, I fear.
18
use lib File::Spec->catdir(qw(t lib));
24
use Sereal::TestSet qw(:all);
27
my $ok = have_encoder_and_decoder();
29
plan skip_all => 'Did not find right version of encoder';
35
compress => Sereal::Encoder::SRL_ZLIB(),
36
compress_threshold => 0,