Sha256: 62997bd9e6305b3493d1c64aec2ada188ef746718df732fd00e5a441397a1bf8

Contents?: true

Size: 926 Bytes

Versions: 114

Compression:

Stored size: 926 Bytes

Contents

module Tests exposing (..)

import Test exposing (..)
import Expect
import Leap


tests : Test
tests =
    describe "Leap"
        [ test "leap year" <|
            \() -> Expect.equal True (Leap.isLeapYear 1996)
        , skip <|
            test "non-leap year" <|
                \() -> Expect.equal False (Leap.isLeapYear 1997)
        , skip <|
            test "non-leap even year" <|
                \() -> Expect.equal False (Leap.isLeapYear 1998)
        , skip <|
            test "century" <|
                \() -> Expect.equal False (Leap.isLeapYear 1900)
        , skip <|
            test "second century" <|
                \() -> Expect.equal False (Leap.isLeapYear 1800)
        , skip <|
            test "fourth century" <|
                \() -> Expect.equal True (Leap.isLeapYear 2400)
        , skip <|
            test "y2k" <|
                \() -> Expect.equal True (Leap.isLeapYear 2000)
        ]

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.24 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.23 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.22 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.21 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.20 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.19 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.18 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.17 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.16 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.15 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.14 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.13 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.12 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.11 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.10 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.9 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.8 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.7 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.6 tracks/elm/exercises/leap/tests/Tests.elm
trackler-2.2.1.5 tracks/elm/exercises/leap/tests/Tests.elm