diff options
author | Eric Wong <e@80x24.org> | 2021-02-19 05:09:55 -0700 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-19 19:25:25 +0000 |
commit | ae31a9e82c34727ba15e98f6ec63481cb8429606 (patch) | |
tree | 3bcf822f17bf572431b572de9fd326f8b6d7db88 /t/uri_imap.t | |
parent | bf367c9ac999e2e64a53ead083f68b171d9f6d35 (diff) | |
download | public-inbox-ae31a9e82c34727ba15e98f6ec63481cb8429606.tar.gz |
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.
Diffstat (limited to 't/uri_imap.t')
-rw-r--r-- | t/uri_imap.t | 1 |
1 files changed, 1 insertions, 0 deletions
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'); |