diff options
Diffstat (limited to 't/is-word.t')
-rw-r--r-- | t/is-word.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/is-word.t b/t/is-word.t new file mode 100644 index 0000000..a7daff0 --- /dev/null +++ b/t/is-word.t @@ -0,0 +1,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; |