From ae31a9e82c34727ba15e98f6ec63481cb8429606 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 19 Feb 2021 05:09:55 -0700 Subject: URIimap: overload "" to ->as_string This interpolation is used by the upstream URI package and we rely on it elsewhere for HTTP(S) URIs, so save ourselves some surprises down the line. --- t/uri_imap.t | 1 + 1 file changed, 1 insertion(+) (limited to 't') diff --git a/t/uri_imap.t b/t/uri_imap.t index 6c4207c3..f7c78665 100644 --- a/t/uri_imap.t +++ b/t/uri_imap.t @@ -19,6 +19,7 @@ is($uri->auth, undef); is($uri->user, undef); $uri = PublicInbox::URIimap->new('imaps://foo@0/'); +is("$uri", $uri->as_string, '"" overload works'); is($uri->host, '0', 'numeric host'); is($uri->user, 'foo', 'user extracted'); -- cgit v1.2.3-24-ge0c7