4 require Business::ISBN;
7 print "1..0 # Skipped: Needs the Business::ISBN module installed\n\n";
15 my $u = URI->new("URN:ISBN:0395363411");
17 print "not " unless $u eq "URN:ISBN:0395363411" &&
18 $u->scheme eq "urn" &&
22 print "not " unless $u->canonical eq "urn:isbn:0-395-36341-1";
25 print "not " unless $u->isbn eq "0-395-36341-1";
28 print "not " unless $u->isbn_country_code == 0;
31 print "not " unless $u->isbn_publisher_code == 395;
34 print "not " unless $u->isbn_as_ean eq "9780395363416";
37 print "not " unless $u->nss eq "0395363411";
40 print "not " unless $u->isbn("0-88730-866-x") eq "0-395-36341-1";
43 print "not " unless $u->nss eq "0-88730-866-x";
46 print "not " unless $u->isbn eq "0-88730-866-X";
49 print "not " unless URI::eq("urn:isbn:088730866x", "URN:ISBN:0-88-73-08-66-X");
53 $u = URI->new("urn:ISBN:abc");
54 print "not " unless $u eq "urn:ISBN:abc";
57 print "not " if $u->nss ne "abc" || defined $u->isbn;