#!/usr/bin/env perl
use strict;
use warnings;

BEGIN {
  unless ($ENV{RELEASE_TESTING}) {
    require Test::More;
    Test::More::plan(skip_all => 'these tests are for release candidate testing');
  }
}

#---------------------------------------------------------------------


use Test::More;
eval "use Test::Spellunker";
plan skip_all => "Test::Spellunker required for testing POD spelling" if $@;

add_stopwords(qw/-th
                 bigint bigints bigfloat bigfloats bignum bignums
                 quadmath
                 pseudoprime pseudoprimes pseudoprimality
                 primorial primorials
                 semiprime semiprimes
                 precalculated premultiplier
                 benchmarking hardcoded online aliasing
                 unoptimized unusably orderings
                 coprime summatory
                 RiemannR LambertW
                 csrand srand irand irand32 irand64 drand urandomb urandomm urandomr
                 forprimes forcomposites foroddcomposites fordivisors
                 forpart forcomp forcomb forperm forderange formultiperm forsetproduct
                 forsemiprimes forfactored foralmostprimes
                 forsquarefree forsquarefreeint
                 lastfor
                 numtoperm permtonum randperm
                 totient moebius mertens liouville kronecker znorder znprimroot znlog
                 sumliouville sumtotient
                 gcd lcm gcdext chinese
                 sqrtmod allsqrtmod rootmod allrootmod
                 negmod invmod addmod submod mulmod powmod divmod muladdmod mulsubmod
                 fubini binomialmod factorialmod
                 bernfrac bernreal harmfrac harmreal stirling hclassno
                 vecsum vecprod vecmin vecmax vecreduce vecextract vecequal vecuniq
                 vecall vecany vecnone vecnotall vecfirst vecfirstidx vecmex vecpmex
                 vecsample vecfreq vecsingleton vecslide vecpairwise pairwise vecwindow vecprefixsum
                 vecsort vecsorti vecrsort vecrsorti heapsort quicksort
                 toint
                 sqrtint logint rootint crootint powint addint subint mulint divint
                 cdivint modint negint absint divrem tdivrem fdivrem cdivrem
                 muladdint mulsubint
                 qnr cornacchia
                 todigits todigitstring fromdigits sumdigits reverse_digits hammingweight
                 tozeckendorf fromzeckendorf
                 lucasu lucasv lucasuv lucasumod lucasvmod lucasuvmod
                 lshiftint rshiftint rashiftint signint cmpint
                 biquadrate powerfree k-powerfree k-free workaround
                 sumpowerful powersum partitionsq
                 sumset setbinop setunion setintersect setminus setdelta toset
                 setcontains setcontainsany setinsert setremove setinvert
                 contfrac farey convergents bestrational semiconvergent
                 sopf sopfr min max
                 _uvsize _ivsize _nvsize _uvbits _nvmantbits _nvmantdigits
                 pp 100ns/);

all_pod_files_spelling_ok();
