exercism/go/rna-transcription
Brian Buller 50f4a86fd8 Initial Commit 2016-08-13 18:20:14 -05:00
..
README.md Initial Commit 2016-08-13 18:20:14 -05:00
cases_test.go Initial Commit 2016-08-13 18:20:14 -05:00
rna_transcription_test.go Initial Commit 2016-08-13 18:20:14 -05:00

README.md

Rna Transcription

Write a program that, given a DNA strand, returns its RNA complement (per RNA transcription).

Both DNA and RNA strands are a sequence of nucleotides.

The four nucleotides found in DNA are adenine (A), cytosine (C), guanine (G) and thymine (T).

The four nucleotides found in RNA are adenine (A), cytosine (C), guanine (G) and uracil (U).

Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement:

  • G -> C
  • C -> G
  • T -> A
  • A -> U

To run the tests simply run the command go test in the exercise directory.

If the test suite contains benchmarks, you can run these with the -bench flag:

go test -bench .

For more detailed info about the Go track see the help page.

Source

Rosalind view source