AI-Gene-Sequence

 view release on metacpan or  search on metacpan

t/tgene.t  view on Meta::CPAN

# Gtest is a small package used to test the AI::Gene::Sequence
# package.  It provides a generate_token method and a seed_gene
# method, the first is highly deterministic (so tests of a module
# which hinge on randomness can work) and the second sets up a gene
# ready for a test.

# Also is a new method, which creates the gene and seeds it and
# 'd' and 'g' methods, which return (stringified) versions of the
# sequence ($self->[0]) and gene (@{$self->[1]}) respectively.

package GTest;
our (@ISA);
use AI::Gene::Sequence;
@ISA = qw(AI::Gene::Sequence);

sub new {
  my $class = shift;
  my $self = ['',[]];
  bless $self, $class;
  $self->seed_gene;
  return $self;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.287 second using v1.00-cache-2.02-grep-82fe00e-cpan-585fae043c8 )