use
strict;
use
warnings;
use
HTTP::Async;
use
URI;
my
@tests
= (
'bar?baz=bundy'
,
'?baz=bundy'
,
);
foreach
my
$test
(
@tests
) {
my
$url
= HTTP::Async::_make_url_absolute(
url
=>
$test
,
ref
=>
$full_url
,
);
is
"$url"
,
"$full_url"
,
"$test -> $full_url"
;
}