Created my first Goodie

master
wongalvis 2015-04-20 10:38:25 +00:00
parent a3a9ccfecc
commit 470dd85ba1
2 changed files with 43 additions and 0 deletions

View File

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

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