Started the kotlin track

This commit is contained in:
2018-06-21 08:54:16 -05:00
parent ce5ea92f79
commit c0f0c379fa
446 changed files with 3085 additions and 574 deletions

View File

@@ -0,0 +1 @@
fun transcribeToRna(dna: String): String = ""

View File

@@ -0,0 +1,45 @@
import org.junit.Test
import org.junit.Ignore
import kotlin.test.assertEquals
class RnaTranscriptionTest {
/*
In Kotlin functions can be declared at top level in a file, meaning
you do not need to create a class to hold a function, like languages
such as Java, C# or Scala.
http://kotlinlang.org/docs/reference/functions.html#function-scope
*/
@Test
fun cytosineComplementIsGuanine() {
assertEquals("G", transcribeToRna("C"))
}
@Ignore
@Test
fun guanineComplementIsCytosine() {
assertEquals("C", transcribeToRna("G"))
}
@Ignore
@Test
fun thymineComplementIsAdenine() {
assertEquals("A", transcribeToRna("T"))
}
@Ignore
@Test
fun adenineComplementIsUracil() {
assertEquals("U", transcribeToRna("A"))
}
@Ignore
@Test
fun rnaTranscription() {
assertEquals("UGCACCAGAAUU", transcribeToRna("ACGTGGTCTTAA"))
}
}