1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 19);
12 use_ok('Bio::SeqFeature::Generic');
13 use_ok('Bio::SeqFeature::FeaturePair');
17 my ($feat, $feat2, $pair);
19 ok $pair = Bio::SeqFeature::FeaturePair->new();
21 ok $feat = Bio::SeqFeature::Generic->new(
26 -source => 'internal',
27 -display_name => 'my exon feature',
34 ok $feat2 = Bio::SeqFeature::Generic->new(
39 -source => 'program_a',
47 ok $pair->feature1($feat);
48 ok $pair->feature2($feat2);
50 is $pair->feature1, $feat, 'feature1 of pair stored';
51 is $pair->feature2, $feat2, 'feature2 of pair stored';
52 is $pair->start, 40, 'feature start';
53 is $pair->end, 80, 'feature end';
54 is $pair->primary_tag, 'exon', 'primary tag';
55 is $pair->source_tag, 'internal', 'source tag';
56 is $pair->hstart, 400, 'hstart';
57 is $pair->hend, 440, 'hend';
58 is $pair->hprimary_tag, 'other', 'hprimary tag';
59 is $pair->hsource_tag, 'program_a', 'hsource tag';
62 is $pair->end, 440, 'inverted end';