Sha256: b2c16c2edc83268b86c701df1358ab874015893df08dcffd76d42f900707700c

Contents?: true

Size: 757 Bytes

Versions: 68

Compression:

Stored size: 757 Bytes

Contents

import org.junit.Assert;
import org.junit.Test;

class RnaTranscriptionTest {

    @Test
    fun emptyDnaIsEmptyRna() {
        Assert.assertEquals("", RnaTranscription.ofDna(""));
    }

    @Test
    fun cytosineIsGuanine() {
        Assert.assertEquals("G", RnaTranscription.ofDna("C"));
    }

    @Test
    fun guanineIsCytosine() {
        Assert.assertEquals("C", RnaTranscription.ofDna("G"));
    }

    @Test
    fun thymineIsAdenine() {
        Assert.assertEquals("A", RnaTranscription.ofDna("T"));
    }

    @Test
    fun adenineIsUracil() {
        Assert.assertEquals("U", RnaTranscription.ofDna("A"));
    }

    @Test
    fun rnaTranscription() {
        Assert.assertEquals("UGCACCAGAAUU", RnaTranscription.ofDna("ACGTGGTCTTAA"));
    }
}

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.0.5.11 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.10 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.9 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.8 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.7 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.6 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.5 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.4 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.3 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.2 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.1 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.0 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.4.0 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.9 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.8 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.7 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.6 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.5 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.4 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.3.3 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt