Sha256: cf128a6c9c8056c8e6f818a6676058b06c7a204875b5e829ec01f4145ab128a7
Contents?: true
Size: 1.08 KB
Versions: 71
Compression:
Stored size: 1.08 KB
Contents
import org.scalatest.{Matchers, FunSuite} /** @version 1.0.1 */ class RnaTranscriptionTest extends FunSuite with Matchers { test("RNA complement of cytosine is guanine") { RnaTranscription.toRna("C") should be (Some("G")) } test("RNA complement of guanine is cytosine") { pending RnaTranscription.toRna("G") should be (Some("C")) } test("RNA complement of thymine is adenine") { pending RnaTranscription.toRna("T") should be (Some("A")) } test("RNA complement of adenine is uracil") { pending RnaTranscription.toRna("A") should be (Some("U")) } test("RNA complement") { pending RnaTranscription.toRna("ACGTGGTCTTAA") should be (Some("UGCACCAGAAUU")) } test("correctly handles invalid input (RNA instead of DNA)") { pending RnaTranscription.toRna("U") should be (None) } test("correctly handles completely invalid DNA input") { pending RnaTranscription.toRna("XXX") should be (None) } test("correctly handles partially invalid DNA input") { pending RnaTranscription.toRna("ACGTXXXCTTAA") should be (None) } }
Version data entries
71 entries across 71 versions & 1 rubygems