Merge pull request #753 from duckduckgo/jag/duckduckgo-meta

DuckDuckGo: Example query does not actually trigger the IA.
master
Matt Miller 2014-11-13 23:57:15 +02:00
commit 6815990f24
2 changed files with 10 additions and 5 deletions

View File

@ -5,8 +5,8 @@ use DDG::Goodie;
use YAML qw( Load );
primary_example_queries 'help';
secondary_example_queries 'Zero-Click Info', 'zeroclick';
primary_example_queries 'duckduckgo help';
secondary_example_queries 'ddg tor', 'short URL for duck duck go';
description 'DuckDuckGo help and quick links';
name 'DuckDuckGo';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/DuckDuckGo.pm';

View File

@ -34,13 +34,17 @@ my @zci_result = (
ddg_goodie_test(
[qw( DDG::Goodie::DuckDuckGo )],
# Primary example queries
'duckduckgo help' => test_zci(@help_result),
# Secondary example queries
"ddg tor" => test_zci(@tor_result),
'short URL for duck duck go' => test_zci(@shorturl_result),
# Other queries
'duckduckgo Zero-Click Info' => test_zci(@zci_result),
'ddg zeroclick' => test_zci(@zci_result),
'duckduckgo help' => test_zci(@help_result),
'duckduckgo about' => test_zci(@about_result),
'ddg merch' => test_zci(@merch_result),
'duckduckgo irc' => test_zci(@irc_result),
'short URL for duck duck go' => test_zci(@shorturl_result),
"duckduckgo's about" => test_zci(@about_result),
'duck duck go merchandise' => test_zci(@merch_result),
"ddgs irc" => test_zci(@irc_result),
@ -57,7 +61,8 @@ ddg_goodie_test(
'duckduckgo t-shirt' => test_zci(@merch_result),
'ddg t shirts' => test_zci(@merch_result),
'duck duck go tee' => test_zci(@merch_result),
irc => undef,
# Intentionally ignored queries
irc => undef,
);
done_testing;