Sha256: d4ecf9d384b51bd0675c5a44cec27d81823c364d02b042e68bebbfa07a7072a1

Contents?: true

Size: 1.07 KB

Versions: 114

Compression:

Stored size: 1.07 KB

Contents

module Tests exposing (..)

import Test exposing (..)
import Expect
import RNATranscription exposing (toRNA)


tests : Test
tests =
    describe "RNATranscription"
        [ test "complement of cytosine is guanine" <|
            \() -> Expect.equal (Ok "G") (toRNA "C")
        , skip <|
            test "complement of guanine is cytosine" <|
                \() -> Expect.equal (Ok "C") (toRNA "G")
        , skip <|
            test "complement of thymine is adenine" <|
                \() -> Expect.equal (Ok "A") (toRNA "T")
        , skip <|
            test "complement of adenine is uracil" <|
                \() -> Expect.equal (Ok "U") (toRNA "A")
        , skip <|
            test "complement" <|
                \() -> Expect.equal (Ok "UGCACCAGAAUU") (toRNA "ACGTGGTCTTAA")
        , skip <|
            test "correctly handles completely invalid input" <|
                \() -> Expect.equal (Err 'X') (toRNA "XXX")
        , skip <|
            test "correctly handles partially invalid input" <|
                \() -> Expect.equal (Err 'U') (toRNA "UGAAXXXGACAUG")
        ]

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.44 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.43 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.42 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.41 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.40 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.39 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.38 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.37 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.36 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.35 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.34 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.33 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.32 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.31 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.30 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.29 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.28 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.27 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.26 tracks/elm/exercises/rna-transcription/tests/Tests.elm
trackler-2.2.1.25 tracks/elm/exercises/rna-transcription/tests/Tests.elm