### ----------------------------------------------------
### -- LWP::Simple
### -- Licenses: Artistic-2.0
### -- Authors: cosimo, niner, Raku community modules team
### -- File: t/get-chunked-6guts.t
### ----------------------------------------------------
use v6;
use Test;

use LWP::Simple;

plan 1;

if %*ENV<NO_NETWORK_TESTING> {
    diag "NO_NETWORK_TESTING was set";
    skip-rest("NO_NETWORK_TESTING was set");
    exit;
}

# would really be nice to verify in headers that it's really chunked
# but, for now, this is "Simple"
my $html = LWP::Simple.get('http://strangelyconsistent.org/blog/youre-in-a-space-of-twisty-little-mazes-all-alike/');

ok(
    $html.match('masak') && $html.match('</html>') && $html.chars > 20_000,
    'Pulled down whole chunked article'
);


