Game of Thrones easter egg IA.
parent
6f826aacc3
commit
750b8477b8
|
@ -0,0 +1,25 @@
|
|||
package DDG::Goodie::ValarMorghulis;
|
||||
# ABSTRACT: A Game of Thrones / A Song of Ice and Fire easter egg.
|
||||
|
||||
use DDG::Goodie;
|
||||
|
||||
triggers start => 'valar morghulis';
|
||||
primary_example_queries 'valar morghulis';
|
||||
|
||||
name 'Valar Morghulis';
|
||||
description 'Game of Thrones / A Song of Ice and Fire easter egg.';
|
||||
category 'special';
|
||||
topics 'geek';
|
||||
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ValarMorghulis.pm';
|
||||
attribution
|
||||
web => ['http://engvik.nu', 'Lars Jansøn Engvik'],
|
||||
github => [ 'larseng', 'Lars Jansøn Engvik'];
|
||||
|
||||
zci answer_type => 'valarmorghulis';
|
||||
|
||||
handle remainder => sub {
|
||||
return 'Valar Dohaeris' if $_ eq '';
|
||||
return;
|
||||
};
|
||||
|
||||
1;
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More;
|
||||
use DDG::Test::Goodie;
|
||||
|
||||
zci answer_type => 'valarmorghulis';
|
||||
|
||||
ddg_goodie_test(
|
||||
[
|
||||
'DDG::Goodie::ValarMorghulis'
|
||||
],
|
||||
'valar morghulis' =>
|
||||
test_zci(
|
||||
'Valar Dohaeris',
|
||||
),
|
||||
'what is valar morghulis' => undef,
|
||||
'valar morghulis meaning' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue