Merge pull request #1015 from kirshapps/master

KirshApps's First Goodie
master
Rob Emery 2015-03-04 08:13:02 +00:00
commit 01fb8cac4a
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package DDG::Goodie::IsAwesome::kirshapps;
use DDG::Goodie;
zci answer_type => "is_awesome_kirshapps";
zci is_cached => 1;
name "IsAwesome kirshapps";
description "Tells everyone that kirshapps is awesome";
primary_example_queries "duckduckhack kirshapps";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/kirshapps.pm";
attribution github => ["https://github.com/kirshapps", "kirshapps"];
triggers start => "duckduckhack kirshapps";
handle remainder => sub {
return if $_;
return "kirshapps is awesome and has successfully completed the DuckDuckHack goodie tutorial!"
};
1;

19
t/IsAwesome/kirshapps.t Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_kirshapps";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::kirshapps
)],
'duckduckhack kirshapps' => test_zci('kirshapps is awesome and has successfully completed the DuckDuckHack goodie tutorial!'),
'duckduckhack kirshapps is awesome' => undef,
);
done_testing;