blob: 2c6045f148bd36ea7a4131757c873b0f8b99b89f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env perl
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");
}
|