Sha256: 6438cba30d021440320af839afaa3750cbc3c7d67939a097fc4070edb853b1dc

Contents?: true

Size: 840 Bytes

Versions: 69

Compression:

Stored size: 840 Bytes

Contents

if !System.get_env("EXERCISM_TEST_EXAMPLES") do
  Code.load_file("rna_transcription.exs", __DIR__)
end

ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)

defmodule RNATranscriptionTest do
  use ExUnit.Case

  # @tag :pending
  test "transcribes guanine to cytosine" do
    assert RNATranscription.to_rna('G') == 'C'
  end

  @tag :pending
  test "transcribes cytosine to guanine" do
    assert RNATranscription.to_rna('C') == 'G'
  end

  @tag :pending
  test "transcribes thymidine to adenine" do
    assert RNATranscription.to_rna('T') == 'A'
  end

  @tag :pending
  test "transcribes adenine to uracil" do
    assert RNATranscription.to_rna('A') == 'U'
  end

  @tag :pending
  test "it transcribes all dna nucleotides to rna equivalents" do
    assert RNATranscription.to_rna('ACGTGGTCTTAA') == 'UGCACCAGAAUU'
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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