30 lines
634 B
Perl
30 lines
634 B
Perl
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
use DDG::Test::Goodie;
|
|
|
|
zci answer_type => 'valar_morghulis';
|
|
zci is_cached => 1;
|
|
|
|
ddg_goodie_test(
|
|
['DDG::Goodie::ValarMorghulis'],
|
|
'valar morghulis' => test_zci(
|
|
'Valar dohaeris',
|
|
structured_answer => {
|
|
data => {
|
|
title => 'Valar dohaeris',
|
|
subtitle => 'Code phrase: Valar morghulis'
|
|
},
|
|
templates => {
|
|
group => 'text'
|
|
}
|
|
}
|
|
),
|
|
'what is valar morghulis' => undef,
|
|
'valar morghulis meaning' => undef,
|
|
);
|
|
|
|
done_testing; |