| 1 | #!perl |
| 2 | use strictscip-perl cpan Sereal 5.006 strict/; |
| 3 | use warningsscip-perl cpan Sereal 5.006 warnings/; |
| 4 | use Test::Morescip-perl cpan Sereal 5.006 Test/More/; |
| 5 | use File::Specscip-perl cpan Sereal 5.006 File/Spec/; |
| 6 | use libscip-perl cpan Sereal 5.006 lib/ File::Spec->catdir(qw(t lib)); |
| 7 | |
| 8 | BEGIN { |
| 9 | lib->importscip-perl cpan Sereal 5.006 lib/import().('lib') |
| 10 | if !-d 't'; |
| 11 | } |
| 12 | |
| 13 | use Sereal::TestSetscip-perl cpan Sereal 5.006 Sereal/TestSet/; |
| 14 | use Sereal::Decoderscip-perl cpan Sereal 5.006 Sereal/Decoder/; |
| 15 | use Test::Warnscip-perl cpan Sereal 5.006 Test/Warn/; |
| 16 | |
| 17 | SCOPE: { |
| 18 | my $d = Sereal::Decoder->newscip-perl cpan Sereal 5.006 Sereal/Decoder/new().; |
| 19 | warnings_arescip-perl cpan Sereal 5.006 main/warnings_are(). { |
| 20 | eval { $d->decodescip-perl cpan Sereal 5.006 Sereal/Decoder/decode().("=srl\1\0\321j\3\3\3\3\3\3\3\3\3\3.\1") } |
| 21 | } |
| 22 | [], "no warnings"; |
| 23 | warnings_arescip-perl cpan Sereal 5.006 main/warnings_are(). { |
| 24 | eval { $d->decodescip-perl cpan Sereal 5.006 Sereal/Decoder/decode().("=srl\1\0\254/\6") } |
| 25 | } |
| 26 | [], "no warnings"; |
| 27 | } |
| 28 | |
| 29 | passscip-perl cpan Sereal 5.006 main/pass().("Alive"); |
| 30 | |
| 31 | done_testingscip-perl cpan Sereal 5.006 main/done_testing().(); |