Add ARM files
[dh-make-perl] / dev / arm / liburi-perl / liburi-perl-1.35.dfsg.1 / t / rsync.t
1 #!perl -w
2
3 print "1..4\n";
4
5 use strict;
6 use URI;
7
8 my $u = URI->new('rsync://gisle@perl.com/foo/bar');
9
10 print "not " unless $u->user eq "gisle";
11 print "ok 1\n";
12
13 print "not " unless $u->port eq 873;
14 print "ok 2\n";
15
16 print "not " unless $u->path eq "/foo/bar";
17 print "ok 3\n";
18
19 $u->port(8730);
20
21 print "not " unless $u eq 'rsync://gisle@perl.com:8730/foo/bar';
22 print "ok 4\n";
23