Sha256: 293be1ba26a2ebe0c1f16c4a5158f5fcb54afaa21c63ba8e841e31cc90a9863d

Contents?: true

Size: 1.08 KB

Versions: 193

Compression:

Stored size: 1.08 KB

Contents

"
" Version: 1.0.1
"

Before:
  unlet! input expected

Execute (RNA complement of cytosine is guanine):
  let input = "C"
  let expected = "G"
  AssertEqual expected, ToRna(input)

Execute (RNA complement of guanine is cytosine):
  let input = "G"
  let expected = "C"
  AssertEqual expected, ToRna(input)

Execute (RNA complement of thymine is adenine):
  let input = "T"
  let expected = "A"
  AssertEqual expected, ToRna(input)

Execute (RNA complement of adenine is uracil):
  let input = "A"
  let expected = "U"
  AssertEqual expected, ToRna(input)

Execute (RNA complement):
  let input = "ACGTGGTCTTAA"
  let expected = "UGCACCAGAAUU"
  AssertEqual expected, ToRna(input)

Execute (correctly handles invalid input (RNA instead of DNA)):
  let input = "U"
  let expected = ''
  AssertEqual expected, ToRna(input)

Execute (correctly handles completely invalid DNA input):
  let input = "XXX"
  let expected = ''
  AssertEqual expected, ToRna(input)

Execute (correctly handles partially invalid DNA input):
  let input = "ACGTXXXCTTAA"
  let expected = ''
  AssertEqual expected, ToRna(input)

Version data entries

193 entries across 193 versions & 1 rubygems

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