Sha256: 1b2f775ace311bbdb221a75b71c4188ec3e859c03ddcaea3d93d531dcbd620bd
Contents?: true
Size: 988 Bytes
Versions: 16
Compression:
Stored size: 988 Bytes
Contents
import org.junit.Assert; import org.junit.Test; 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 emptyDnaIsEmptyRna() { Assert.assertEquals("", transcribeToRna("")); } @Test fun cytosineIsGuanine() { Assert.assertEquals("G", transcribeToRna("C")); } @Test fun guanineIsCytosine() { Assert.assertEquals("C", transcribeToRna("G")); } @Test fun thymineIsAdenine() { Assert.assertEquals("A", transcribeToRna("T")); } @Test fun adenineIsUracil() { Assert.assertEquals("U", transcribeToRna("A")); } @Test fun rnaTranscription() { Assert.assertEquals("UGCACCAGAAUU", transcribeToRna("ACGTGGTCTTAA")); } }
Version data entries
16 entries across 16 versions & 1 rubygems