1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 27);
11 use_ok('Bio::Tools::EPCR');
15 my $DEBUG = test_debug();
17 my $seqio = Bio::SeqIO->new('-format' => 'fasta', '-file' => test_input_file('genomic-seq.fasta'));
19 my $seq = $seqio->next_seq;
21 my $epcr = Bio::Tools::EPCR->new( '-file' => test_input_file('genomic-seq.epcr'));
24 while( defined(my $feature = $epcr->next_feature) ) {
28 $seq->add_SeqFeature($feature);
29 $strand{$feature->strand} ++;
31 is ($strand{1}, 3, 'got 3 forward strand ePCR hits');
32 is ($strand{-1}, 3, 'got 3 reverse strand ePCR hits');
35 $seqio = Bio::SeqIO->new('-format' => 'genbank' );
36 $seqio->write_seq($seq);