Sha256: f564cc2db7932b46f5b7d9d9c04940e5f020ef7da9e395a1d4118075891953db

Contents?: true

Size: 990 Bytes

Versions: 64

Compression:

Stored size: 990 Bytes

Contents

import org.junit.Test
import org.junit.Ignore
import kotlin.test.assertEquals

/*
 * version: 1.0.1
 */
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"))
    }

}

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
trackler-2.2.1.49 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.48 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.47 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.46 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.45 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.44 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.43 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.42 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.41 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.40 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.39 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.38 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.37 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.36 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.35 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.34 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.33 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.32 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.31 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.30 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt