-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rna-transcription: Add generators and regenerate tests (#798)
* update function template * update example solution * add generators and regenerate tests * update contributors [no important files changed]
- Loading branch information
1 parent
85d5ebd
commit 8675462
Showing
5 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns rna-transcription-test | ||
(:require [clojure.test :refer [deftest testing is]] | ||
rna-transcription)) | ||
|
||
{{#test_cases.toRna}} | ||
(deftest to-rna_test_{{idx}} | ||
(testing {{description}} | ||
(is (= {{expected}} (rna-transcription/to-rna {{input.dna}}))))) | ||
{{/test_cases.toRna}} |
8 changes: 5 additions & 3 deletions
8
exercises/practice/rna-transcription/src/rna_transcription.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
(ns rna-transcription) | ||
|
||
(defn to-rna [dna] ;; <- arglist goes here | ||
;; your code goes here | ||
) | ||
(defn to-rna | ||
"Returns the RNA complement of the given DNA string sequence." | ||
[dna] | ||
;; function body | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters