Add ARM files
[dh-make-perl] / dev / arm / liburi-perl / liburi-perl-1.35.dfsg.1 / t / clone.t
1 #!perl -w
2
3 print "1..2\n";
4
5 use strict;
6 use URI::URL;
7
8 my $b = URI::URL->new("http://www/");
9
10 my $u1 = URI::URL->new("foo", $b);
11 my $u2 = $u1->clone;
12
13 $u1->base("http://yyy/");
14
15 #use Data::Dump; Data::Dump::dump($b, $u1, $u2);
16
17 print "not " unless $u1->abs->as_string eq "http://yyy/foo";
18 print "ok 1\n";
19
20 print "not " unless $u2->abs->as_string eq "http://www/foo";
21 print "ok 2\n";