Subject: | bug-Media-Type-Simple |
Date: | Thu, 10 Mar 2011 01:53:49 -0600 |
To: | bug-Media-Type-Simple [...] rt.cpan.org |
From: | John Bussjaeger <john [...] plainsmedia.com> |
Version 0.02
is_type() dies from undefined if a / is not included in the type string.
is_ext() handles empty strings gracefully; docs fail to specify
is_type() requires a valid MIME string; it should return false on any
invalid input string.
failed test:
require Media::Type::Simple;
my $obj= Media::Type::Simple->new();
my $test= $obj->is_type('hello');
print $test? "ok" : "not ok";