Add ARM files
[dh-make-perl] / dev / arm / liburi-perl / liburi-perl-1.35.dfsg.1 / t / rsync.t
diff --git a/dev/arm/liburi-perl/liburi-perl-1.35.dfsg.1/t/rsync.t b/dev/arm/liburi-perl/liburi-perl-1.35.dfsg.1/t/rsync.t
new file mode 100644 (file)
index 0000000..b53e0cf
--- /dev/null
@@ -0,0 +1,23 @@
+#!perl -w
+
+print "1..4\n";
+
+use strict;
+use URI;
+
+my $u = URI->new('rsync://gisle@perl.com/foo/bar');
+
+print "not " unless $u->user eq "gisle";
+print "ok 1\n";
+
+print "not " unless $u->port eq 873;
+print "ok 2\n";
+
+print "not " unless $u->path eq "/foo/bar";
+print "ok 3\n";
+
+$u->port(8730);
+
+print "not " unless $u eq 'rsync://gisle@perl.com:8730/foo/bar';
+print "ok 4\n";
+