2016-07-16 14:36:26 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use Test::Deep;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2016-07-16 14:45:29 -07:00
|
|
|
zci answer_type => 'csscolors';
|
2016-07-16 14:36:26 -07:00
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
sub build_structured_answer {
|
|
|
|
|
|
|
|
return 'CSS Colors',
|
|
|
|
structured_answer => {
|
|
|
|
|
|
|
|
data => {
|
|
|
|
title => 'CSS Colors',
|
|
|
|
list => '',
|
|
|
|
},
|
|
|
|
|
|
|
|
templates => {
|
|
|
|
group => 'list',
|
|
|
|
options => {
|
2016-07-16 14:45:29 -07:00
|
|
|
list_content => 'DDH.csscolors.list_content'
|
2016-07-16 14:36:26 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
# Use this to build expected results for your tests.
|
|
|
|
sub build_test { test_zci(build_structured_answer(@_)) }
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw( DDG::Goodie::CssColors )],
|
|
|
|
|
|
|
|
'css colors' => build_test(),
|
|
|
|
|
|
|
|
'color picker' => undef,
|
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|