1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 12);
11 use_ok('Bio::Tools::Tmhmm');
14 my $infile = test_input_file('tmhmm.out');
16 ok my $parser = Bio::Tools::Tmhmm->new(-file=>$infile), 'new()';
19 while ( my $feat = $parser->next_result ) {
23 is @feat, 3, 'got 3 feat';
25 is $feat[0]->seq_id, 'my_sequence_id';
26 is $feat[0]->source_tag, 'TMHMM2.0';
27 is $feat[0]->primary_tag, 'transmembrane';
36 for (0..(scalar(@feat)-1)) {
37 is $feat[$_]->start, $raa_test_data->[$_]->[0];
38 is $feat[$_]->end, $raa_test_data->[$_]->[1];