26 lines
557 B
Perl
26 lines
557 B
Perl
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use Test::More;
|
|
use DDG::Test::Goodie;
|
|
|
|
zci answer_type => 'reverse';
|
|
zci is_cached => 1;
|
|
|
|
ddg_goodie_test(
|
|
[qw(
|
|
DDG::Goodie::Reverse
|
|
)],
|
|
'reverse bla' => test_zci('Reversed "bla": alb'),
|
|
'reverse blabla' => test_zci('Reversed "blabla": albalb'),
|
|
'reverse esrever' => test_zci('Reversed "esrever": reverse'),
|
|
|
|
#Should not trigger on a request for DNA/RNA reverse complement
|
|
'reverse complement of ATG-CTA-GGG-GCT' => undef,
|
|
'reverse complement gacuacgaucgagkmanscuag' => undef
|
|
);
|
|
|
|
done_testing;
|
|
|