1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 9);
12 use_ok('Bio::Symbol::Symbol');
15 ok my $thymine = Bio::Symbol::Symbol->new(-name => 'Arg',
17 my $a = Bio::Symbol::Symbol->new(-token => 'A' );
18 my $u = Bio::Symbol::Symbol->new(-token => 'U' );
19 my $g = Bio::Symbol::Symbol->new(-token => 'G' );
21 is($thymine->name, "Arg");
22 is($thymine->token, "R");
23 my $M = Bio::Symbol::Symbol->new(-name => 'Met',
25 -symbols => [ $a, $u, $g ]);
29 my @symbols = $M->symbols;
30 my @expected = ($a, $u, $g);
32 is($expected[$_], $symbols[$_]);