Created my first Goodie

master
Roshan 2015-01-09 23:50:15 +05:30
parent b0551f9b74
commit 74e9f300ed
2 changed files with 43 additions and 0 deletions

View File

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

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