summaryrefslogtreecommitdiff
path: root/go/rna-transcription/cases_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/rna-transcription/cases_test.go')
-rw-r--r--go/rna-transcription/cases_test.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/go/rna-transcription/cases_test.go b/go/rna-transcription/cases_test.go
new file mode 100644
index 0000000..156f70d
--- /dev/null
+++ b/go/rna-transcription/cases_test.go
@@ -0,0 +1,24 @@
+package strand
+
+// Source: exercism/x-common
+// Commit: 6985644 Merge pull request #121 from mikeyjcat/add-roman-numerals-test-definition
+
+var rnaTests = []struct {
+ input string
+ expected string
+}{
+ // rna complement of cytosine is guanine
+ {"C", "G"},
+
+ // rna complement of guanine is cytosine
+ {"G", "C"},
+
+ // rna complement of thymine is adenine
+ {"T", "A"},
+
+ // rna complement of adenine is uracil
+ {"A", "U"},
+
+ // rna complement
+ {"ACGTGGTCTTAA", "UGCACCAGAAUU"},
+}