Sha256: d6b6e0e37116bd268484aecfd27a3a42ee0cb56b2f5533b3818b4b7be031ac48

Contents?: true

Size: 1.16 KB

Versions: 73

Compression:

Stored size: 1.16 KB

Contents

module Tests exposing (..)

import Expect
import SpaceAge exposing (Planet(..), ageOn)
import Test exposing (..)


tests : Test
tests =
    describe "SpaceAge"
        [ test "age in earth years" <|
            \() -> Expect.equal 32 (round (ageOn Earth 1000000000.0))
        , skip <|
            test "age in mercury years" <|
                \() -> Expect.equal 281 (round (ageOn Mercury 2134835688.0))
        , skip <|
            test "age in venus years" <|
                \() -> Expect.equal 10 (round (ageOn Venus 189839836.0))
        , skip <|
            test "age on mars" <|
                \() -> Expect.equal 39 (round (ageOn Mars 2329871239.0))
        , skip <|
            test "age on jupiter" <|
                \() -> Expect.equal 2 (round (ageOn Jupiter 901876382.0))
        , skip <|
            test "age on saturn" <|
                \() -> Expect.equal 3 (round (ageOn Saturn 3000000000.0))
        , skip <|
            test "age on uranus" <|
                \() -> Expect.equal 1 (round (ageOn Uranus 3210123456.0))
        , skip <|
            test "age on neptune" <|
                \() -> Expect.equal 2 (round (ageOn Neptune 8210123456.0))
        ]

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.179 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.178 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.177 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.176 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.175 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.174 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.173 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.172 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.171 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.170 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.169 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.167 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.166 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.165 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.164 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.163 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.162 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.161 tracks/elm/exercises/space-age/tests/Tests.elm
trackler-2.2.1.160 tracks/elm/exercises/space-age/tests/Tests.elm