zeroclickinfo-goodies/t/UltimateAnswer.t

28 lines
676 B
Perl
Raw Normal View History

2014-09-02 14:25:38 -07:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
2014-10-07 01:58:48 -07:00
zci answer_type => "ultimate_answer";
zci is_cached => 1;
ddg_goodie_test(
2014-10-07 01:58:48 -07:00
['DDG::Goodie::UltimateAnswer'],
2014-10-28 11:36:15 -07:00
2014-10-07 01:58:48 -07:00
'what is the answer to the ultimate question of life the universe and everything' => test_zci(
'Forty-two',
structured_answer => {
input => [],
operation => 'The answer to the ultimate question of life, the universe and everything',
2014-10-07 01:58:48 -07:00
result => 'Forty-two',
}
),
'what is the answer to my homework question' => undef,
2014-10-07 01:58:48 -07:00
'why?' => undef,
);
2014-08-22 09:42:29 -07:00
done_testing;