IsAwesome::watermelonwarrior: clean up.
parent
34f9371c5a
commit
84526770e8
|
@ -6,7 +6,6 @@ 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";
|
||||
|
@ -21,9 +20,8 @@ triggers start => "duckduckhack watermelonwarrior";
|
|||
|
||||
# Handle statement
|
||||
handle remainder => sub {
|
||||
|
||||
return if $_;
|
||||
return "Watermelonwarrior is awesome and has successfully completed the tutorial"
|
||||
return "watermelonwarrior is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
@ -10,14 +10,7 @@ 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' => test_zci('watermelonwarrior is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
|
||||
'duckduckhack watermelonwarrior is awesome' => undef,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue