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

Version Path
trackler-2.1.0.24 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.23 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.22 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.21 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.20 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.19 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.18 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.17 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.16 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.15 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.14 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.13 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.12 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.11 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.10 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.9 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.8 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.7 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.6 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.1.0.5 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt