Skip to content

Commit

Permalink
Merge pull request duckduckgo#1223 from gokul1794/firstgoodie
Browse files Browse the repository at this point in the history
goodie tutorial
  • Loading branch information
moollaza committed Jun 30, 2015
2 parents 8bbb1c6 + b5663bb commit 229d0f9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/DDG/Goodie/IsAwesome/gokul1794.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package DDG::Goodie::IsAwesome::gokul1794;
# ABSTRACT: gokul1794's first goodie

use DDG::Goodie;
use strict;

zci answer_type => "is_awesome_gokul1794";
zci is_cached => 1;

name "IsAwesome gokul1794";
description "Not my first goodie, but let the world know that gokul1794 is awesome";
primary_example_queries "duckduckhack gokul1794";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/gokul1794.pm";
attribution github => ["https://github.com/gokul1794", "gokul1794"],
twitter => "gokul_shanth";

triggers start => "duckduckhack gokul1794";

handle remainder => sub {
return if $_;
return "gokul1794 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};

1;
18 changes: 18 additions & 0 deletions t/IsAwesome/gokul1794.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;

zci answer_type => "is_awesome_gjskha";
zci is_cached => 1;

ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::gjskha
)],
'duckduckhack gokul1794' => test_zci('gokul1794 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack gokul1794 is awesome' => undef,
);
done_testing;

0 comments on commit 229d0f9

Please sign in to comment.