zeroclickinfo-goodies/t/ZappBrannigan.t

32 lines
680 B
Perl
Raw Normal View History

2012-05-29 13:48:03 -07:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Test::Deep;
2012-05-29 13:48:03 -07:00
use DDG::Test::Goodie;
2014-10-06 01:19:43 -07:00
zci answer_type => 'zapp_brannigan';
zci is_cached => 0;
2012-05-29 13:48:03 -07:00
ddg_goodie_test(
2014-10-06 01:19:43 -07:00
[qw( DDG::Goodie::ZappBrannigan )],
2016-05-10 13:46:51 -07:00
'zapp brannigan quote' => test_zci(
re('Zapp Brannigan: '),
2014-10-06 01:19:43 -07:00
structured_answer => {
2016-05-10 13:46:51 -07:00
data => {
subtitle => 'Zapp Brannigan quote',
content => re('Zapp Brannigan: ')
},
templates => {
group => "text",
options => {
content => 'DDH.zapp_brannigan.content'
}
2016-05-10 13:46:51 -07:00
}
},
2014-10-06 01:19:43 -07:00
),
2012-05-29 13:48:03 -07:00
);
2016-05-10 13:46:51 -07:00
done_testing;