blob: 3ed6bc293fbbe78f06dfedb4e15bb9823025a10f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!perl -T
use strict;
use warnings;
use Test::More tests => 10;
use Test::Exception;
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");
}
|