commit
312de70bd5
|
@ -3,7 +3,7 @@ package DDG::Goodie::Reverse;
|
|||
|
||||
use DDG::Goodie;
|
||||
|
||||
primary_example_queries 'reverse esrever';
|
||||
primary_example_queries 'reverse text esrever';
|
||||
description 'reverse the order of the characters in your query';
|
||||
name 'Reverse';
|
||||
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Reverse.pm';
|
||||
|
|
14
t/Reverse.t
14
t/Reverse.t
|
@ -9,16 +9,16 @@ zci answer_type => 'reverse';
|
|||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw(
|
||||
DDG::Goodie::Reverse
|
||||
)],
|
||||
'reverse text bla' => test_zci('Reversed "bla": alb'),
|
||||
'reverse text blabla' => test_zci('Reversed "blabla": albalb'),
|
||||
[qw(DDG::Goodie::Reverse)],
|
||||
# Primary example query
|
||||
'reverse text esrever' => test_zci('Reversed "esrever": reverse'),
|
||||
'reverse' => undef,
|
||||
# Other queries
|
||||
'reverse text bla' => test_zci('Reversed "bla": alb'),
|
||||
'reverse text blabla' => test_zci('Reversed "blabla": albalb'),
|
||||
'reverse' => undef,
|
||||
|
||||
#Should not trigger on a request for DNA/RNA reverse complement
|
||||
'reverse complement of ATG-CTA-GGG-GCT' => undef,
|
||||
'reverse complement of ATG-CTA-GGG-GCT' => undef,
|
||||
'reverse complement gacuacgaucgagkmanscuag' => undef
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue