diff --git a/lib/DDG/Goodie/IsAwesome/NicolasGeraud.pm b/lib/DDG/Goodie/IsAwesome/NicolasGeraud.pm new file mode 100644 index 000000000..bfdbdc41c --- /dev/null +++ b/lib/DDG/Goodie/IsAwesome/NicolasGeraud.pm @@ -0,0 +1,25 @@ +package DDG::Goodie::IsAwesome::NicolasGeraud; +# ABSTRACT: NicolasGeraud's first Goodie + +use DDG::Goodie; + +zci answer_type => "is_awesome_nicolas_geraud"; +zci is_cached => 1; + +name "IsAwesome NicolasGeraud"; +description "My first Goodie, it let's the world know that Nicolas GĂ©raud is awesome"; +primary_example_queries "duckduckhack NicolasGeraud"; +category "special"; +topics "special_interest", "geek"; +code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/NicolasGeraud.pm"; +attribution github => ["https://github.com/NicolasGeraud", "NicolasGeraud"], + twitter => "NicolasGeraud"; + +triggers start => "duckduckhack nicolasgeraud"; + +handle remainder => sub { + return if $_; + return "NicolasGeraud is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; +}; + +1; diff --git a/t/IsAwesome/NicolasGeraud.t b/t/IsAwesome/NicolasGeraud.t new file mode 100644 index 000000000..b437add4d --- /dev/null +++ b/t/IsAwesome/NicolasGeraud.t @@ -0,0 +1,17 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Test::More; +use DDG::Test::Goodie; + +zci answer_type => "is_awesome_nicolas_geraud"; +zci is_cached => 1; + +ddg_goodie_test( + [qw( DDG::Goodie::IsAwesome::NicolasGeraud )], + 'duckduckhack NicolasGeraud' => test_zci('NicolasGeraud is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), + 'duckduckhack NicolasGeraud is awesome' => undef, +); + +done_testing;