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