diff options
author | Olaf Alders <olaf@wundersolutions.com> | 2019-03-29 10:03:46 -0400 |
---|---|---|
committer | Olaf Alders <olaf@wundersolutions.com> | 2019-03-29 10:03:46 -0400 |
commit | 918244a96bde8431c6f92eb89b6710d37afb72bc (patch) | |
tree | c46366bc266dd3281780b8f2beabafa3ebe6f5b1 | |
parent | eea5168d003181cd930b7cc541297fd431c254de (diff) | |
download | uri-oalders/ipv6.tar.gz |
Add a simple test case for an ipv6 hostoalders/ipv6
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | t/ipv6.t | 14 |
2 files changed, 15 insertions, 0 deletions
@@ -1,6 +1,7 @@ Revision history for URI {{$NEXT}} + - Add a simple test case for an ipv6 host 1.76 2019-01-09 16:59:54Z - Revert changes introduced in 1.75 diff --git a/t/ipv6.t b/t/ipv6.t new file mode 100644 index 0000000..5dfb337 --- /dev/null +++ b/t/ipv6.t @@ -0,0 +1,14 @@ +#!perl + +use strict; +use warnings; + +use URI (); +use Test::More; + +my $url = URI->new('http://[fe80::e828:209d:20e:c0ae]:375'); + +is( $url->host, 'fe80::e828:209d:20e:c0ae', 'host' ); +is( $url->port, 375, 'port' ); + +done_testing(); |