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