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