2
## Bioperl Test Harness Script for Modules
6
# to handle systems with no installed Test module
7
# we include the t dir (where a copy of Test.pm is located)
9
eval { require Test; };
18
use Bio::PopGen::TagHaplotype;
27
my $obj = Bio::PopGen::TagHaplotype -> new(-haplotype_block => $hap);
30
# check haplotype length
31
ok( $obj->tag_length ,1); # Tag length for this set must be 1
34
ok( (join ' ', @{($obj->tag_list)->[0]}) ,'1 2'); # the SNPs are 1 and 2 (1 2)