1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 15);
11 use_ok('Bio::Tools::Seg');
14 my ($infile, $parser) ;
16 $infile = test_input_file('seg.out');
17 ok ($parser = Bio::Tools::Seg->new(-file=>$infile), 'parser defined') ;
20 while ( my $feat = $parser->next_result ) {
27 #>LBL_0012(32-46) complexity=2.47 (12/2.20/2.50)
31 #>LBL_0012(66-80) complexity=2.31 (12/2.20/2.50)
35 #>LBL_0012(123-138) complexity=2.31 (12/2.20/2.50)
39 [ 'LBL_0012', 32, 46, 2.47 ],
40 [ 'LBL_0012', 66, 80, 2.31 ],
41 [ 'LBL_0012', 123, 138, 2.31 ],
44 for (0..( scalar(@feat)-1 )) {
45 is ( $feat[$_]->seq_id, $raa_testdata->[$_]->[0], "seq id for seq $_ identified" ) ;
46 is ( $feat[$_]->start, $raa_testdata->[$_]->[1], "start for seq $_ identified" ) ;
47 is ( $feat[$_]->end, $raa_testdata->[$_]->[2], "end for seq $_ identified" ) ;
48 is ( $feat[$_]->score, $raa_testdata->[$_]->[3], "score for seq $_ identified" ) ;