Sha256: 32579a12fefb833291b3b9d26b4832458825558bdeb47b1fb8760c60b2db83a9

Contents?: true

Size: 1.29 KB

Versions: 68

Compression:

Stored size: 1.29 KB

Contents

import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class RnaTranscriptionTest {

    private RnaTranscription rnaTranscription;

    @Before
    public void setUp() {
        rnaTranscription = new RnaTranscription();
    }

    @Test
    public void testRnaTranscriptionOfEmptyDnaIsEmptyRna() {
        Assert.assertEquals("", rnaTranscription.transcribe(""));
    }

    @Ignore("Remove to run test")
    @Test
    public void testRnaTranscriptionOfCytosineIsGuanine() {
        Assert.assertEquals("G", rnaTranscription.transcribe("C"));
    }

    @Ignore("Remove to run test")
    @Test
    public void testRnaTranscriptionOfGuanineIsCytosine() {
        Assert.assertEquals("C", rnaTranscription.transcribe("G"));
    }

    @Ignore("Remove to run test")
    @Test
    public void testRnaTranscriptionOfThymineIsAdenine() {
        Assert.assertEquals("A", rnaTranscription.transcribe("T"));
    }

    @Ignore("Remove to run test")
    @Test
    public void testRnaTranscriptionOfAdenineIsUracil() {
        Assert.assertEquals("U", rnaTranscription.transcribe("A"));
    }

    @Ignore("Remove to run test")
    @Test
    public void testRnaTranscription() {
        Assert.assertEquals("UGCACCAGAAUU", rnaTranscription.transcribe("ACGTGGTCTTAA"));
    }
}

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.0.4 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.2.0.3 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.2.0.2 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.2.0.1 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.2.0.0 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.55 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.54 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.53 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.52 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.51 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.50 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.49 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.48 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.47 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.46 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.45 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.44 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.43 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.42 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
trackler-2.1.0.41 tracks/java/exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java