X-Git-Url: http://git.ieval.ro/?p=io-compress-brotli.git;a=blobdiff_plain;f=t%2F01-uncompress.t;h=c29fa6e28401f0b7015ef49d170f2d633073f284;hp=28907ca0ffd6618acab8d0ddd70e2b1172372fec;hb=c17e7d6329e8a24e6128a9f70e2b597fce1b5b0a;hpb=d2b64400639f64f01fe3172668f65636e94b74ec diff --git a/t/01-uncompress.t b/t/01-uncompress.t index 28907ca..c29fa6e 100644 --- a/t/01-uncompress.t +++ b/t/01-uncompress.t @@ -3,15 +3,15 @@ use v5.14; use warnings; use Test::More tests => 84; -use File::Slurp; +use File::Slurper qw/read_binary/; use IO::Uncompress::Brotli; for my $test () { my ($expected) = $test =~ s/\.compressed.*//r; - $expected = read_file $expected; + $expected = read_binary $expected; - my $decoded = unbro ((scalar read_file $test), 1_000_000); + my $decoded = unbro ((scalar read_binary $test), 1_000_000); is $decoded, $expected, "$test"; open FH, '<', $test;