From b5663bbdb467c2885bc6f5821f26880d13716c24 Mon Sep 17 00:00:00 2001 From: gokul1794 Date: Tue, 30 Jun 2015 14:55:59 +0000 Subject: [PATCH] goodie tutorial --- lib/DDG/Goodie/IsAwesome/gokul1794.pm | 26 ++++++++++++++++++++++++++ t/IsAwesome/gokul1794.t | 18 ++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 lib/DDG/Goodie/IsAwesome/gokul1794.pm create mode 100644 t/IsAwesome/gokul1794.t diff --git a/lib/DDG/Goodie/IsAwesome/gokul1794.pm b/lib/DDG/Goodie/IsAwesome/gokul1794.pm new file mode 100644 index 000000000..1c9aafeb0 --- /dev/null +++ b/lib/DDG/Goodie/IsAwesome/gokul1794.pm @@ -0,0 +1,26 @@ +package DDG::Goodie::IsAwesome::gokul1794; +# ABSTRACT: gokul1794's first goodie + +use DDG::Goodie; +use strict; + +zci answer_type => "is_awesome_gokul1794"; +zci is_cached => 1; + +name "IsAwesome gokul1794"; +description "Not my first goodie, but let the world know that gokul1794 is awesome"; +primary_example_queries "duckduckhack gokul1794"; +category "special"; +topics "special_interest", "geek"; +code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/gokul1794.pm"; +attribution github => ["https://github.com/gokul1794", "gokul1794"], + twitter => "gokul_shanth"; + +triggers start => "duckduckhack gokul1794"; + +handle remainder => sub { + return if $_; + return "gokul1794 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; +}; + +1; diff --git a/t/IsAwesome/gokul1794.t b/t/IsAwesome/gokul1794.t new file mode 100644 index 000000000..2f8fd72bf --- /dev/null +++ b/t/IsAwesome/gokul1794.t @@ -0,0 +1,18 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Test::More; +use DDG::Test::Goodie; + +zci answer_type => "is_awesome_gjskha"; +zci is_cached => 1; + +ddg_goodie_test( + [qw( + DDG::Goodie::IsAwesome::gjskha + )], + 'duckduckhack gokul1794' => test_zci('gokul1794 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), + 'duckduckhack gokul1794 is awesome' => undef, +); +done_testing; \ No newline at end of file