Sha256: ec225f98ea6da6b8124ad537afec860b54e051eeaaa376df101a8bfbce14d788
Contents?: true
Size: 979 Bytes
Versions: 311
Compression:
Stored size: 979 Bytes
Contents
using Base.Test include("rna-transcription.jl") @testset "basic transformations" begin @testset "rna complement of cytosine is guanine" begin @test to_rna("C") == "G" end @testset "rna complement of guanine is cytosine" begin @test to_rna("G") == "C" end @testset "rna complement of thymine is adenine" begin @test to_rna("T") == "A" end @testset "rna complement of adenine is uracil" begin @test to_rna("A") == "U" end end @testset "rna complement" begin @test to_rna("ACGTGGTCTTAA") == "UGCACCAGAAUU" end @testset "error handling" begin @testset "dna correctly handles invalid input" begin @test_throws ErrorException to_rna("U") end @testset "dna correctly handles completely invalid input" begin @test_throws ErrorException to_rna("XXX") end @testset "dna correctly handles partially invalid input" begin @test_throws ErrorException to_rna("ACGTXXXCTTAA") end end
Version data entries
311 entries across 311 versions & 1 rubygems