1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 16);
12 use_ok('Bio::Variation::AAReverseMutate');
15 my $obj = Bio::Variation::AAReverseMutate->new
20 isa_ok($obj, 'Bio::Variation::AAReverseMutate');
26 my @points = $obj->each_Variant;
27 # F>S has two solutions
30 $obj->codon_ori('ttc');
33 #now there should be only one left
34 @points = $obj->each_Variant;
38 is $obj->codon_table, 3;
40 #Check the returned object
41 my $rna = pop @points;
42 isa_ok($rna, 'Bio::Variation::RNAChange');
45 is $rna->allele_ori->seq, 't';
46 is $rna->allele_mut->seq, 'c';
48 is $rna->codon_ori, 'ttc', "Codon_ori is |". $rna->codon_ori. "|";
50 is $rna->codon_pos, 2;
52 $obj->codon_table(11);
53 is $obj->codon_table, 11;