1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 12);
12 use_ok('Bio::SeqFeature::Computation');
15 my ($comp_obj1, $comp_obj2, @sft);
17 ok $comp_obj1 = Bio::SeqFeature::Computation->new(
22 is $comp_obj1->computation_id(332), 332, 'computation id';
24 ok $comp_obj1->add_score_value('P', 33), 'score value';
26 ok $comp_obj2 = Bio::SeqFeature::Computation->new(
31 ok $comp_obj1->add_SeqFeature($comp_obj2, 'exon');
32 ok @sft = $comp_obj1->get_all_SeqFeature_types();
34 is $sft[0], 'exon', 'sft[0] is exon';
37 ok $comp_obj1 = Bio::SeqFeature::Computation->new(
42 -program_name => 'GeneMark',
43 -program_date => '12-5-2000',
44 -program_version => 'x.y',
45 -database_name => 'Arabidopsis',
46 -database_date => '12-dec-2000',
47 -computation_id => 2231,
48 -score => { no_score => 334 },
51 is $comp_obj1->computation_id, 2231, 'computation id';
52 ok $comp_obj1->add_score_value('P', 33);
53 is ( ($comp_obj1->each_score_value('no_score'))[0], '334', 'score value');