X-Git-Url: http://git.maemo.org/git/?p=dh-make-perl;a=blobdiff_plain;f=dev%2Fi386%2Fliburi-perl%2Fliburi-perl-1.35.dfsg.1%2Ft%2Fmms.t;fp=dev%2Fi386%2Fliburi-perl%2Fliburi-perl-1.35.dfsg.1%2Ft%2Fmms.t;h=03fdcea1c8664bcefaecafec11c8d90dfc60678c;hp=0000000000000000000000000000000000000000;hb=8977e561d8a9eae6959218b0306c9df2056a38a9;hpb=df794b845212301ea0d267c919232538bfef356a diff --git a/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/t/mms.t b/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/t/mms.t new file mode 100644 index 0000000..03fdcea --- /dev/null +++ b/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/t/mms.t @@ -0,0 +1,37 @@ +#!perl -w + +print "1..8\n"; + +use URI; + +$u = URI->new(""); + +#print "$u\n"; +print "not " unless $u eq "mms://66.250.188.13/KFOG_FM"; +print "ok 1\n"; + +print "not " unless $u->port == 1755; +print "ok 2\n"; + +# play with port +$old = $u->port(8755); +print "not " unless $old == 1755 && $u eq "mms://66.250.188.13:8755/KFOG_FM"; +print "ok 3\n"; + +$u->port(1755); +print "not " unless $u eq "mms://66.250.188.13:1755/KFOG_FM"; +print "ok 4\n"; + +$u->port(""); +print "not " unless $u eq "mms://66.250.188.13:/KFOG_FM" && $u->port == 1755; +print "ok 5\n"; + +$u->port(undef); +print "not " unless $u eq "mms://66.250.188.13/KFOG_FM"; +print "ok 6\n"; + +print "not " unless $u->host eq "66.250.188.13"; +print "ok 7\n"; + +print "not " unless $u->path eq "/KFOG_FM"; +print "ok 8\n";