Merge branch 'master' of https://github.com/watermelonwarrior/zeroclickinfo-goodies into jag/watermelon
commit
34f9371c5a
|
@ -0,0 +1,29 @@
|
|||
package DDG::Goodie::IsAwesome::watermelonwarrior;
|
||||
# ABSTRACT: Watermelonwarrior's first Goodie
|
||||
|
||||
use DDG::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_watermelonwarrior";
|
||||
zci is_cached => 1;
|
||||
|
||||
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
|
||||
name "IsAwesome watermelonwarrior";
|
||||
description "My first Goodie, it let's the world konw that watermelonwarrior is awesome";
|
||||
primary_example_queries "duckduckhack watermelonwarrior";
|
||||
category "special";
|
||||
topics "special_interest", "geek";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/watermelonwarrior.pm";
|
||||
attribution github => ["https://github.com/watermelonwarrior", "Watermelonwarrior"],
|
||||
twitter => "harrisonson";
|
||||
|
||||
# Triggers
|
||||
triggers start => "duckduckhack watermelonwarrior";
|
||||
|
||||
# Handle statement
|
||||
handle remainder => sub {
|
||||
|
||||
return if $_;
|
||||
return "Watermelonwarrior is awesome and has successfully completed the tutorial"
|
||||
};
|
||||
|
||||
1;
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
use DDG::Test::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_watermelonwarrior";
|
||||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw( DDG::Goodie::IsAwesome::watermelonwarrior )],
|
||||
# At a minimum, be sure to include tests for all:
|
||||
# - primary_example_queries
|
||||
# - secondary_example_queries
|
||||
#'example query' => test_zci('query'),
|
||||
# Try to include some examples of queries on which it might
|
||||
# appear that your answer will trigger, but does not.
|
||||
#'bad example query' => undef,
|
||||
'duckduckhack watermelonwarrior' => test_zci('Watermelonwarrior is awesome and has successfully completed the tutorial'),
|
||||
'duckduckhack watermelonwarrior is awesome' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue