8 my $uri = URI->new("http://www.example.com/foo/bar/");
10 print "not " unless $uri->rel("http://www.example.com/foo/bar/") eq "./";
13 print "not " unless $uri->rel("HTTP://WWW.EXAMPLE.COM/foo/bar/") eq "./";
16 print "not " unless $uri->rel("HTTP://WWW.EXAMPLE.COM/FOO/BAR/") eq "../../foo/bar/";
19 print "not " unless $uri->rel("HTTP://WWW.EXAMPLE.COM:80/foo/bar/") eq "./";