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.0.5 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.2.0.4 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.2.0.3 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.2.0.2 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.2.0.1 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.2.0.0 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.55 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.54 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.53 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.52 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.51 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.50 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader
trackler-2.1.0.49 tracks/vimscript/exercises/rna-transcription/rna_transcription.vader