Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / liburi-perl / liburi-perl-1.35.dfsg.1 / t / urn-oid.t
diff --git a/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/t/urn-oid.t b/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/t/urn-oid.t
new file mode 100644 (file)
index 0000000..88e60ac
--- /dev/null
@@ -0,0 +1,24 @@
+#!perl -w
+
+print "1..4\n";
+
+use strict;
+use URI;
+
+my $u = URI->new("urn:oid");
+
+$u->oid(1..10);
+
+#print "$u\n";
+
+print "not " unless $u eq "urn:oid:1.2.3.4.5.6.7.8.9.10";
+print "ok 1\n";
+
+print "not " unless $u->oid eq "1.2.3.4.5.6.7.8.9.10";
+print "ok 2\n";
+
+print "not " unless $u->scheme eq "urn" && $u->nid eq "oid";
+print "ok 3\n";
+
+print "not " unless $u->oid eq $u->nss;
+print "ok 4\n";