Subject: | fix tests when perlcritic is missing |
Attached is a patch for version 0.1 of WWW::Dict::Zdic
to fix t/perlcritic.t in case Test::Perl::Critic is missing.
Also, when I did `perl Makefile.PL`, I got a warning:
Writing META.yml
WARNING: VERSION takes a string/number not a version reference.
Please inform the author.
I believe it's referring to
use version; our $VERSION = qv('0.0.1');
in lib/WWW/Dict/Zdic.pm , but I didn't submit a patch to fix it.
Subject: | zdic.diff |
--- t/perlcritic.t~ 2006-10-05 05:03:42.000000000 +0200
+++ t/perlcritic.t 2006-10-07 20:25:51.000000000 +0200
@@ -1,6 +1,8 @@
#!perl
-if (!require Test::Perl::Critic) {
+eval { require Test::Perl::Critic };
+if ($@) {
+ require Test::More;
Test::More::plan(
skip_all => "Test::Perl::Critic required for testing PBP compliance"
);