7 $u = URI->new("news:comp.lang.perl.misc");
9 print "not " unless $u->group eq "comp.lang.perl.misc" &&
10 !defined($u->message) &&
12 $u eq "news:comp.lang.perl.misc";
16 $u->host("news.online.no");
17 print "not " unless $u->group eq "comp.lang.perl.misc" &&
19 $u eq "news://news.online.no/comp.lang.perl.misc";
22 $u->group("no.perl", 1 => 10);
23 print "not " unless $u eq "news://news.online.no/no.perl/1-10";
28 print "not " unless @g == 3 && "@g" eq "no.perl 1 10";
31 $u->message('42@g.aas.no');
33 print "not " unless $u->message eq '42@g.aas.no' &&
34 !defined($u->group) &&
35 $u eq 'news://news.online.no/42@g.aas.no';
39 $u = URI->new("nntp:no.perl");
40 print "not " unless $u->group eq "no.perl" &&
44 $u = URI->new("snews://snews.online.no/no.perl");
46 print "not " unless $u->group eq "no.perl" &&
47 $u->host eq "snews.online.no" &&