Merge pull request #1246 from gmahesh23/master

First Goodie Hack
master
Zaahir Moolla 2015-09-17 09:29:02 -04:00
commit ebe4b942c0
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package DDG::Goodie::IsAwesome::gmahesh23;
# ABSTRACT: gmahesh23's first Goodie
use DDG::Goodie;
use strict;
zci answer_type => "is_awesome_gmahesh23";
zci is_cached => 1;
name "IsAwesome gmahesh23";
description "Tell the world gmahesh23 is awesome ";
primary_example_queries "first example query", "second example query";
secondary_example_queries "optional -- demonstrate any additional triggers";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/gmahesh23.pm";
attribution github => ["https://github.com/gmahesh23", "gmahesh23"],
twitter => "gmahesh1994";
triggers any => "duckduckhack gmahesh23";
handle remainder => sub {
return if $_;
return "gmahesh23 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

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