1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 13);
12 use_ok('Bio::Variation::SNP');
21 ok $a = Bio::Variation::SNP->new();
22 is $a->id('123'), 123;
23 eval { $a->di('123'); };
25 is $a->validated('by-cluster'), 'by-cluster';
26 my @alleles = ('A', 'T');
27 is $a->validated(\@alleles), \@alleles;
28 is $a->desc('abc'), 'abc'; # Bio::Variation::Allele method
29 is $a->chromosome('X'), 'X'; # Bio::Variation::Allele method
30 ok my $s = $a->add_subsnp;
32 is $s->handle('HGBASE'), 'HGBASE';
34 is $a->each_subsnp, 2;