#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'duckduckgo';
zci is_cached => 1;
ddg_goodie_test([qw(
DDG::Goodie::DuckDuckGo
)
],
'duckduckgo Zero-Click Info' => test_zci(
"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."
),
'ddg zeroclick' => test_zci(
"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."
),
'duckduckgo help' => test_zci(
"Need help? Visit our help page: http://dukgo.com/help/",
html => "Need help? Visit our help page."
),
'duckduckgo about' => test_zci(
"DuckDuckGo's about page: https://duckduckgo.com/about", html => "DuckDuckGo's about page."
),
'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 DuckDuckGo store for t-shirts, stickers, and other items."
),
'duckduckgo irc' => test_zci(
"DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net.",
html =>
"DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net"
),
irc => undef,
);
done_testing;