summaryrefslogtreecommitdiffstats
path: root/t/is-word.t
blob: a7daff00d55d0859e810758bba36435b2fa5c5cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use Games::Word::Wordlist;

my $wl = Games::Word::Wordlist->new(['foo', 'bar', 'baz']);
for (1..10) {
    ok($wl->is_word($wl->random_word),
       "testing checking to see if a random word from the word list is a word");
}

done_testing;