zeroclickinfo-goodies/t/Rafl.t

28 lines
529 B
Perl
Raw Normal View History

2012-10-28 10:19:22 -07:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'rafl';
zci is_cached => 1;
2012-10-28 10:19:22 -07:00
my $intro = qr/^rafl is so everywhere, /;
my @rafl = (
$intro,
structured_answer => {
input => ['rafl'],
operation => 'rafl',
result => $intro
});
2012-10-28 10:19:22 -07:00
ddg_goodie_test(
[qw( DDG::Goodie::Rafl)],
'rafl' => test_zci(@rafl),
'rafl is everywhere' => test_zci(@rafl),
'where is rafl?' => test_zci(@rafl),
2012-10-28 10:19:22 -07:00
);
done_testing;