Created my first Goodie

master
SueSmith 2015-01-29 15:49:01 +00:00
parent 057d57e80a
commit 9e1a401230
2 changed files with 45 additions and 0 deletions

View File

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

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