Sha256: 5f43907de0e1e1e117f313a319e09a30464002dccfd56fb3549bd13ff6ec0d7d

Contents?: true

Size: 710 Bytes

Versions: 75

Compression:

Stored size: 710 Bytes

Contents

#!/usr/bin/env perl6
use v6;
use Test;
use lib IO::Path.new($?FILE).parent.path;

plan 7;
my $module = %*ENV<EXERCISM> ?? 'Example' !! 'RNA_Transcription';
use-ok $module;
require ::($module) <RNA_Transcription>;

ok RNA_Transcription.can('to_rna'), 'Class RNA_Transcription has to_rna() method';

is RNA_Transcription.to_rna('C'), 'G',  'RNA complement of cytosine is guanine';
is RNA_Transcription.to_rna('G'), 'C',  'RNA complement of guanine is cytosine';
is RNA_Transcription.to_rna('T'), 'A',  'RNA complement of thymine is adenine';
is RNA_Transcription.to_rna('A'), 'U',  'RNA complement of adenine is uracil';
is RNA_Transcription.to_rna('ACGTGGTCTTAA'), 'UGCACCAGAAUU', 'transcribes all occurences';

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
trackler-2.0.8.28 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.27 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.26 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.24 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.23 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.22 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.21 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.20 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.19 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.18 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.17 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.16 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.15 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.14 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.13 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.12 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.11 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.10 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.9 tracks/perl6/exercises/rna-transcription/rna-transcription.t
trackler-2.0.8.8 tracks/perl6/exercises/rna-transcription/rna-transcription.t