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.6.12 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.11 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.10 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.9 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.8 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.7 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.6 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.5 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.4 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.3 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.2 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.1 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.6.0 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.18 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.17 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.16 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.15 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.14 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.13 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt
trackler-2.0.5.12 tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt