7 $u = URI->new("<rtsp://media.perl.com/fôo.smi/>");
10 print "not " unless $u eq "rtsp://media.perl.com/f%F4o.smi/";
13 print "not " unless $u->port == 554;
17 $old = $u->port(8554);
18 print "not " unless $old == 554 && $u eq "rtsp://media.perl.com:8554/f%F4o.smi/";
22 print "not " unless $u eq "rtsp://media.perl.com:554/f%F4o.smi/";
26 print "not " unless $u eq "rtsp://media.perl.com:/f%F4o.smi/" && $u->port == 554;
30 print "not " unless $u eq "rtsp://media.perl.com/f%F4o.smi/";
33 print "not " unless $u->host eq "media.perl.com";
36 print "not " unless $u->path eq "/f%F4o.smi/";
40 print "not " unless $u->scheme eq "rtspu";