1 # -*-Perl-*- Test Harness script for Bioperl
11 test_begin(-tests => 14);
13 use_ok('Bio::Variation::Allele');
18 $a = Bio::Variation::Allele->new(-seq=>'ACTGACTGACTG',
19 -display_id => 'new-id',
21 -accession_number => 'X677667',
22 -desc=>'Sample Bio::Seq object');
23 isa_ok($a, 'Bio::Variation::Allele');
25 is $a->accession_number(), 'X677667';
26 is $a->seq(), 'ACTGACTGACTG';
27 is $a->display_id(),'new-id' ;
28 is $a->desc, 'Sample Bio::Seq object';
29 is $a->alphabet(), 'dna';
31 ok defined($trunc = $a->trunc(1,4));
32 is $trunc->seq(), 'ACTG';
34 ok defined($rev = $a->revcom());
35 is $rev->seq(), 'CAGTCAGTCAGT';
40 $a->repeat_unit('ACTG');
41 is $a->repeat_unit, 'ACTG';
44 is $a->repeat_count, 3;