2012-10-29 12:29:01 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2012-10-29 13:13:41 -07:00
|
|
|
zci answer_type => 'findanagrams';
|
|
|
|
zci is_cached => 1;
|
2012-10-29 12:29:01 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(DDG::Goodie::FindAnagrams)],
|
|
|
|
|
2013-01-10 18:50:23 -08:00
|
|
|
"anagrams stop" => test_zci("Post, opts, post, pots, spot, tops"),
|
|
|
|
"anagram stop" => test_zci("Post, opts, post, pots, spot, tops"),
|
|
|
|
"anagrams lost" => test_zci("lots, slot"),
|
|
|
|
"anagram lost" => test_zci("lots, slot"),
|
2013-01-10 18:56:08 -08:00
|
|
|
"anagram of lost" => test_zci("lots, slot"),
|
2012-10-29 12:29:01 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|
|
|
|
|