zeroclickinfo-goodies/t/Anagram.t

25 lines
862 B
Perl
Raw Normal View History

#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
2013-03-01 08:14:55 -08:00
zci answer_type => 'anagram';
zci is_cached => 0;
ddg_goodie_test(
2013-03-01 08:14:55 -08:00
[qw(DDG::Goodie::Anagram)],
'anagram filter' => test_zci("anagram: trifle"),
'anagrams events' => test_zci("anagram: Steven"),
'anagram of algorithm' => test_zci("anagram: logarithm"),
'anagrams of favorite' => test_zci(qr/\"favorite\" scrambled: [favorite]{8}/),
'anagram of' => test_zci(qr/\"of\" scrambled: (of|fo)/),
'anagram filter 5' => test_zci("Anagrams of filter of size 5: filet, flier, flirt, lifer, liter, refit, rifle"),
'anagram times' => test_zci("anagrams: emits, items, mites, smite"),
2013-03-01 08:14:55 -08:00
'anagram Mixing it up' => test_zci(qr/\"Mixing it up\" scrambled: [ Mixngtup]{12}/),
'anagram algorithm 14' => test_zci("anagram: logarithm")
);
done_testing;