2014-09-02 14:25:38 -07:00
|
|
|
#!/usr/bin/env perl
|
2014-08-21 14:11:55 -07:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2014-10-07 01:58:48 -07:00
|
|
|
zci answer_type => "ultimate_answer";
|
2014-09-27 06:42:57 -07:00
|
|
|
zci is_cached => 1;
|
2014-08-21 14:11:55 -07:00
|
|
|
|
|
|
|
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 => [],
|
2015-01-09 00:46:54 -08:00
|
|
|
operation => 'The answer to the ultimate question of life, the universe and everything',
|
2014-10-07 01:58:48 -07:00
|
|
|
result => 'Forty-two',
|
|
|
|
}
|
|
|
|
),
|
2014-08-21 14:11:55 -07:00
|
|
|
'what is the answer to my homework question' => undef,
|
2014-10-07 01:58:48 -07:00
|
|
|
'why?' => undef,
|
2014-08-21 14:11:55 -07:00
|
|
|
);
|
|
|
|
|
2014-08-22 09:42:29 -07:00
|
|
|
done_testing;
|