[libmoosex-semiaffordanceaccessor-perl] 08/12: add spelling test

Intrigeri intrigeri at moszumanska.debian.org
Thu Aug 28 15:44:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag v0.06
in repository libmoosex-semiaffordanceaccessor-perl.

commit bcbbdb2ab3582720d25db13b9286aafc19aaac76
Author: Dave Rolsky <autarch at urth.org>
Date:   Wed Jul 14 14:06:00 2010 -0500

    add spelling test
---
 xt/release/pod-spell.t | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/xt/release/pod-spell.t b/xt/release/pod-spell.t
new file mode 100644
index 0000000..970f07c
--- /dev/null
+++ b/xt/release/pod-spell.t
@@ -0,0 +1,29 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+eval "use Test::Spelling";
+plan skip_all => "Test::Spelling required for testing POD coverage"
+    if $@;
+
+my @stopwords;
+for (<DATA>) {
+    chomp;
+    push @stopwords, $_
+        unless /\A (?: \# | \s* \z)/msx;    # skip comments, whitespace
+}
+
+add_stopwords(@stopwords);
+set_spell_cmd('aspell list -l en');
+
+# This prevents a weird segfault from the aspell command - see
+# https://bugs.launchpad.net/ubuntu/+source/aspell/+bug/71322
+local $ENV{LC_ALL} = 'C';
+all_pod_files_spelling_ok();
+
+__DATA__
+PayPal
+affordance
+attribute's
+init

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-semiaffordanceaccessor-perl.git



More information about the Pkg-perl-cvs-commits mailing list