### ----------------------------------------------------
### -- WWW
### -- Licenses: Artistic-2.0
### -- Authors: Zoffix Znet, Raku community modules maintainers
### -- File: t/01-operation.t
### ----------------------------------------------------
#!raku

use lib 'lib';
use Test;
use Test::When <online>;
use WWW;

plan 4;

for &get, &jget, &post, &jpost -> &op {
    CATCH {
        ok $_, "Fails OK";
    }
    my $res := op 'party';
    isa-ok $res, Failure,
        'failure to resolve host does not throw, but fails';
}


