Created my first Goodie

master
mcavallaro 2015-04-11 11:01:37 +00:00
parent 253b553b49
commit 3c7475df82
2 changed files with 42 additions and 0 deletions

View File

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

17
t/IsAwesome/mcavallaro.t Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_mcavallaro";
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::IsAwesome::mcavallaro )],
'duckduckhack mcavallaro' => test_zci('mcavallaro ha smacchinato un po\' stamattina'),
'duckduckhack mcavallaro is awesome' => undef,
);
done_testing;