File: ipv6.t

package info (click to toggle)
liburi-perl 5.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 948 kB
  • sloc: perl: 3,936; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
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();