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.29 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.28 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.27 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.26 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.25 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.24 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.23 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.22 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.21 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.20 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.19 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.18 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.17 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.16 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.15 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.14 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.13 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.12 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.11 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.2.1.10 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt