| Line | |
|---|
| 1 | use Test::More; |
|---|
| 2 | use Test::Spelling; |
|---|
| 3 | $ENV{LANG} = 'C'; |
|---|
| 4 | |
|---|
| 5 | my $spell_cmd; |
|---|
| 6 | foreach my $path (split(/:/, $ENV{PATH})) { |
|---|
| 7 | -x "$path/spell" and $spell_cmd="spell", last; |
|---|
| 8 | -x "$path/ispell" and $spell_cmd="ispell -l", last; |
|---|
| 9 | -x "$path/aspell" and $spell_cmd="aspell list", last; |
|---|
| 10 | } |
|---|
| 11 | $ENV{SPELL_CMD} and $spell_cmd = $ENV{SPELL_CMD}; |
|---|
| 12 | $spell_cmd or plan skip_all => "no spell/ispell/aspell"; |
|---|
| 13 | set_spell_cmd($spell_cmd); |
|---|
| 14 | |
|---|
| 15 | add_stopwords(<DATA>); |
|---|
| 16 | all_pod_files_spelling_ok(); |
|---|
| 17 | |
|---|
| 18 | __END__ |
|---|
| 19 | adaptor |
|---|
| 20 | Tomohiro |
|---|
| 21 | Teranishi |
|---|
| 22 | masaki |
|---|