mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-14 22:11:39 -06:00
add hello world properly, add rna-transcription (elixir is neat!)
This commit is contained in:
28
elixir/rna-transcription/test/rna_transcription_test.exs
Normal file
28
elixir/rna-transcription/test/rna_transcription_test.exs
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user