### ----------------------------------------------------
### -- IO::Path::AutoDecompress
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/01-basic.rakutest
### ----------------------------------------------------
use Test;
use IO::Path::AutoDecompress;

plan 8;

my $io := $*PROGRAM;
for IO::Path::AutoDecompress.new($io.relative), $io.&IOAD -> $path {

    isa-ok $path, IO::Path::AutoDecompress;
    isa-ok $path, IO::Path;

    is-deeply $path.slurp, $io.slurp, 'normal .slurp ok';
    is-deeply $path.lines, $io.lines, 'normal .lines ok';
}

# vim: expandtab shiftwidth=4


