Sha256: 2c6e92d5ca80dec7bf0e5a9fa703f4f5407b798578ad8fa656c6062b322f5e44

Contents?: true

Size: 832 Bytes

Versions: 131

Compression:

Stored size: 832 Bytes

Contents

log←'./rna-transcription.tc.log'
⍎ ')COPY ',(⎕FIO 30),'/../../test.apl'

test∆copy_relative 'rna-transcription.apl'
test∆clear_log log

⍝ ∇to_rna

⍝ RNA complement of cytosine is guanine
  1⎕CR to_rna 'C'
'G'

⍝ RNA complement of guanine is cytosine
  to_rna 'G'
C

⍝ RNA complement of thymine is adenine
  to_rna 'T'
A

⍝ RNA complement of adenine is uracil
  to_rna 'A'
U

⍝ RNA complement of entire string
  1⎕CR to_rna 'ACGTGGTCTTAA'
'UGCACCAGAAUU'

⍝ invalid input (RNA instead of DNA) throws domain error
  1⎕CR test∆try 'to_rna "U"'
1 'DOMAIN ERROR'

⍝ completely invalid DNA input throws domain error
  1⎕CR test∆try 'to_rna "XXX"'
1 'DOMAIN ERROR'

⍝ partially invalid DNA input throws domain error
  1⎕CR test∆try 'to_rna "ACGTXXXCTTAA"'
1 'DOMAIN ERROR'

test∆show_log log

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.179 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.178 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.177 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.176 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.175 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.174 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.173 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.172 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.171 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.170 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.169 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.167 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.166 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.165 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.164 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.163 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.162 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.161 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc
trackler-2.2.1.160 tracks/gnu-apl/exercises/rna-transcription/rna-transcription.tc