Created my first Goodie

master
abrahimladha 2015-05-27 07:43:18 +00:00
parent 1843b2b6ff
commit d28897379c
2 changed files with 44 additions and 0 deletions

View File

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

View File

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