Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Data/FlexSerializer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use Constant::FromGlobal DEBUG => { int => 1, default => 0, env => 1 };

use List::Util qw(min);
use Storable qw();
use JSON::XS qw();
use JSON::XS 4 qw();
use Sereal::Decoder qw();
use Sereal::Encoder qw();
use Compress::Zlib qw(Z_DEFAULT_COMPRESSION);
Expand Down
6 changes: 3 additions & 3 deletions t/10basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ foreach my $class ('Data::FlexSerializer', 'Data::FlexSerializer::EmptySubclass'
$res = $serializer->serialize($data{garbage});
1;
};
if ($is_sereal) {
ok(!$eval_died, "Under Sereal we support serializing plain SvPV");
if ($is_sereal or $s_name =~ /^(json|flex|default)/) {
ok(!$eval_died, "Under Sereal and JSON we support serializing plain SvPV");
} else {
ok($eval_died, "We should die under Storable and JSON when fed a plain SvPV");
ok($eval_died, "We should die under Storable when fed a plain SvPV");
}
}

Expand Down