Merge pull request #1105 from quoidautre/master

First Goodie: quoidautre
master
Chris Wilson 2015-04-19 22:54:03 +08:00
commit 1d31c19ef9
2 changed files with 43 additions and 0 deletions

View File

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

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