Merge pull request #995 from fish9/master

fish9's First GoodieCreated my first Goodie
master
Rob Emery 2015-02-15 10:35:51 +00:00
commit c5657bc290
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package DDG::Goodie::IsAwesome::fish9;
# ABSTRACT: fish9's first Goodie
use DDG::Goodie;
zci answer_type => "is_awesome_fish9";
zci is_cached => 1;
name "IsAwesome fish9";
description "My first Goodie, it lets the world know that fish9 is awesome";
primary_example_queries "duckduckhack fish9";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/fish9.pm";
attribution github => ["https://github.com/fish9", "fish9"];
triggers start => "duckduckhack fish9";
handle remainder => sub {
return if $_;
return "fish9 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

19
t/IsAwesome/fish9.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_fish9";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::fish9
)],
'duckduckhack fish9' => test_zci('fish9 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack fish9 is awesome' => undef,
);
done_testing;