6 test_begin( -tests => 8, -requires_module => 'List::MoreUtils');
9 use_ok 'Bio::Tools::SeqPattern::Backtranslate';
11 can_ok 'Bio::Tools::SeqPattern::Backtranslate', '_reverse_translate_motif';
19 foreach my $line (@data) {
21 is _reverse_translate_motif( $line->[0] ), $line->[1];
23 throws_ok { _reverse_translate_motif( $line->[0] ) }
29 MAEELKAVAP ATGGCNGARGARYTNAARGCNGTNGCNCCN
30 LKGHB[WhYq]Q YTNAARGGNCAYRAYYRNCAR
31 (LK){2,3}[^GHB][WHYQ]Q (YTNAAR){2,3}HBNYRNCAR
32 LK[^GHB][WHYQ]Q YTNAARHBNYRNCAR
33 (LK){2,3}[^GHB][WHYQ]QX.X (YTNAAR){2,3}HBNYRNCARNNNNNNNNN