Sha256: 465bcf0316110a1e95327002f23ccbbdd2334544579b5ac802be5f269d58286c

Contents?: true

Size: 1.15 KB

Versions: 114

Compression:

Stored size: 1.15 KB

Contents

module Tests exposing (..)

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


tests : Test
tests =
    describe "SpaceAge"
        [ test "age in earth years" <|
            \() -> Expect.equal 32 (round (ageOn Earth 1000000000))
        , skip <|
            test "age in mercury years" <|
                \() -> Expect.equal 281 (round (ageOn Mercury 2134835688))
        , skip <|
            test "age in venus years" <|
                \() -> Expect.equal 10 (round (ageOn Venus 189839836))
        , skip <|
            test "age on mars" <|
                \() -> Expect.equal 39 (round (ageOn Mars 2329871239))
        , skip <|
            test "age on jupiter" <|
                \() -> Expect.equal 2 (round (ageOn Jupiter 901876382))
        , skip <|
            test "age on saturn" <|
                \() -> Expect.equal 3 (round (ageOn Saturn 3000000000))
        , skip <|
            test "age on uranus" <|
                \() -> Expect.equal 1 (round (ageOn Uranus 3210123456))
        , skip <|
            test "age on neptune" <|
                \() -> Expect.equal 2 (round (ageOn Neptune 8210123456))
        ]

Version data entries

114 entries across 114 versions & 1 rubygems

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