3 # test for Bio::SeqFeature::Primer
4 # written by Rob Edwards
7 use constant NUMTESTS => 18;
10 eval { require Test::More; };
16 plan tests => NUMTESTS;
17 use_ok('Bio::SeqFeature::Primer');
20 my ($primer, $location, $start, $end, $strand, $id, $tm, $tme);
22 ok $primer=Bio::SeqFeature::Primer->new(-seq=>'CTTTTCATTCTGACTGCAACG');
23 is $primer->seq->seq, "CTTTTCATTCTGACTGCAACG";
24 is $primer->primary_tag, "Primer";
25 ok $location=$primer->location(500);
27 ok $start=$primer->start(2);
29 ok $end=$primer->end(19);
31 ok $strand=$primer->strand(-1);
33 ok $id=$primer->display_id('test');
36 ok $tme = $primer->Tm_estimate;