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