2012-04-15 22:58:41 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'nletterwords';
|
2012-04-15 23:29:28 -07:00
|
|
|
zci is_cached => 0;
|
2012-04-15 22:58:41 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::NLetterWords
|
|
|
|
)],
|
2012-04-23 10:21:11 -07:00
|
|
|
'1 letter words' => test_zci('Random 1 letter words: a, I.'),
|
|
|
|
'1 char words' => test_zci('Random 1 letter words: a, I.'),
|
|
|
|
'1 character word' => test_zci('Random 1 letter words: a, I.'),
|
2012-04-23 11:15:39 -07:00
|
|
|
'one letter words' => test_zci('Random 1 letter words: a, I.'),
|
2014-02-10 13:24:52 -08:00
|
|
|
'5 letter words' => test_zci(qr/Random 5 letter words: ((\w){5},? ?){30}/),
|
|
|
|
'12 character word' => test_zci(qr/Random 12 letter words: ((\w){12},? ?){30}/),
|
2012-04-15 22:58:41 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|