File: 09-rt92820.t

package info (click to toggle)
libtext-hunspell-perl 2.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,052 kB
  • sloc: perl: 99; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;

use Data::Dumper;
use Test::More tests => 3;
use Text::Hunspell;

my $speller = Text::Hunspell->new(qw(./t/spanish.aff ./t/spanish.dic));
die unless $speller;
ok($speller, q{Loaded the spanish dictionary});

my $word = q(agarró);
ok(
    $speller->check($word),
    qq('$word' should be found in the spanish dictionary)
);

$word = q(agarróso);
ok(
    ! $speller->check($word),
    qq('$word' shouldn't be in the spanish dictionary)
);