Sha256: beb4e625ac2c1475e5fe85566c5ca3f11d0aa3dd19314f044a9d9bcad831cadc
Contents?: true
Size: 949 Bytes
Versions: 34
Compression:
Stored size: 949 Bytes
Contents
import org.scalatest.{Matchers, FunSuite} class DnaTest extends FunSuite with Matchers { test("transcribes blank string") { Dna.toRna("") should be (Some("")) } test("transcribes cytidine to guanine") { Dna.toRna("C") should be (Some("G")) } test("transcribes guanosine to cytosine") { Dna.toRna("G") should be (Some("C")) } test("transcribes adenosine to uracil") { Dna.toRna("A") should be (Some("U")) } test("transcribes thymidine to adenine") { Dna.toRna("T") should be (Some("A")) } test("transcribes all ACGT to UGCA") { Dna.toRna("ACGTGGTCTTAA") should be (Some("UGCACCAGAAUU")) } test("transcribes RNA only nucleotide uracil to None") { Dna.toRna("U") should be (None) } test("transcribes completely invalid DNA to None") { Dna.toRna("XXX") should be (None) } test("transcribes partially invalid DNA to None") { Dna.toRna("ACGTXXXCTTAA") should be (None) } }
Version data entries
34 entries across 34 versions & 1 rubygems