rna-transcription

This commit is contained in:
2024-06-28 13:11:21 -04:00
parent c7b7989ccd
commit 8a0b02049f
10 changed files with 285 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
defmodule RnaTranscriptionTest do
use ExUnit.Case
# @tag :pending
test "empty RNA sequence" do
assert RnaTranscription.to_rna(~c"") == ~c""
end
test "transcribes guanine to cytosine" do
assert RnaTranscription.to_rna(~c"G") == ~c"C"
end
test "transcribes cytosine to guanine" do
assert RnaTranscription.to_rna(~c"C") == ~c"G"
end
test "transcribes thymidine to adenine" do
assert RnaTranscription.to_rna(~c"T") == ~c"A"
end
test "transcribes adenine to uracil" do
assert RnaTranscription.to_rna(~c"A") == ~c"U"
end
test "it transcribes all dna nucleotides to rna equivalents" do
assert RnaTranscription.to_rna(~c"ACGTGGTCTTAA") == ~c"UGCACCAGAAUU"
end
end

View File

@@ -0,0 +1,2 @@
ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)