2 ## Bioperl Test Harness Script for Modules
7 eval { require Test; };
14 plan tests => $NTESTS;
16 use Bio::Tools::RepeatMasker;
20 for ( $Test::ntest..$NTESTS ) {
21 skip("RepeatMasker program not found. Skipping. (Be sure you have the phrap package )",1);
26 my $inputfilename= Bio::Root::IO->catfile("t","data","repeatmasker.fa.out");
27 my $parser = Bio::Tools::RepeatMasker->new(-file => $inputfilename);
29 while (my $rpt = $parser->next_result){
32 ok ($rpt[0]->feature1->start, 1337);
33 ok ($rpt[0]->feature1->end, 1407);
34 ok ($rpt[0]->feature1->strand, 1);
35 ok ($rpt[0]->feature1->primary_tag, "Simple_repeat");
36 ok ($rpt[0]->feature1->source_tag, "RepeatMasker");
37 ok ($rpt[0]->feature2->seq_id, "(TTAGGG)n");