2012-05-02 10:40:56 -07:00
#!/usr/bin/env perl
use strict ;
use warnings ;
use Test::More ;
use DDG::Test::Goodie ;
zci answer_type = > 'duckduckgo' ;
2014-05-01 18:22:22 -07:00
zci is_cached = > 1 ;
2012-05-02 10:40:56 -07:00
2014-05-01 18:22:22 -07:00
ddg_goodie_test ( [ qw(
DDG::Goodie:: DuckDuckGo
)
] ,
2014-04-04 01:33:09 -07:00
'duckduckgo Zero-Click Info' = > test_zci (
2014-05-01 18:22:22 -07:00
"Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results." ,
html = > "Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results."
2014-04-04 01:33:09 -07:00
) ,
'ddg zeroclick' = > test_zci (
2014-05-01 18:22:22 -07:00
"Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results." ,
html = > "Zero Click Info is the term DuckDuckGo uses for these boxes, which often provide useful instant answers above traditional results."
2014-04-04 01:33:09 -07:00
) ,
'duckduckgo help' = > test_zci (
2014-05-01 18:22:22 -07:00
"Need help? Visit our help page: http://dukgo.com/help/" ,
html = > "Need help? Visit our <a href='http://dukgo.com/help/'>help page</a>."
) ,
'duckduckgo about' = > test_zci (
"DuckDuckGo's about page: https://duckduckgo.com/about" , html = > "DuckDuckGo's <a href='https://duckduckgo.com/about'>about page</a>."
) ,
'ddg merch' = > test_zci (
"Thanks for the support! Check out the DuckDuckGo store for t-shirts, stickers, and other items: https://duck.co/help/community/swag" ,
html = >
"Thanks for the support! Check out the <a href='https://duck.co/help/community/swag'>DuckDuckGo store</a> for t-shirts, stickers, and other items."
2014-04-04 01:33:09 -07:00
) ,
'duckduckgo irc' = > test_zci (
2014-05-01 18:22:22 -07:00
"DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net." ,
html = >
"DuckDuckGo's official IRC channel is <a href='http://webchat.freenode.net/?channels=duckduckgo'>#duckduckgo</a> on <a href='http://freenode.net/'>irc.freenode.net</a>"
2014-04-04 01:33:09 -07:00
) ,
irc = > undef ,
2012-05-02 10:40:56 -07:00
) ;
done_testing ;