created my first goodie

master
tarun29061990 2014-10-29 11:15:15 +00:00
parent 7cbb3dcec9
commit 9d244b9e1e
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package DDG::Goodie::IsAwesome::tarun29061990;
# ABSTRACT: Write an abstract here
# Start at https://duck.co/duckduckhack/goodie_overview if you are new
# to instant answer development
use DDG::Goodie;
zci answer_type => "is_awesome_tarun29061990";
zci is_cached => 1;
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
name "IsAwesome tarun29061990";
description "My first Goodie, it let's the world know that tarun29061990 is awesome";
primary_example_queries "duckduckhack tarun29061990";
category "";
topics "";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/tarun29061990.pm";
attribution github => ["https://github.com/tarun29061990", "tarun29061990"],
twitter => "_tarunChaudhary";
# Triggers
triggers start => "duckduckhack tarun29061990";
# Handle statement
handle remainder => sub {
return if $_;
return "tarun29061990 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

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