Sha256: 0eca7291e3aec6eb5fb528bff33016e2cc1f2b5039b3154112b7188081972af4

Contents?: true

Size: 721 Bytes

Versions: 223

Compression:

Stored size: 721 Bytes

Contents

module Test.Main where

import Prelude
import Test.Unit (suite, test)
import Test.Unit.Main (runTest)
import Test.Unit.Assert as Assert
import Leap as Leap


main = runTest do
  suite "Leap.isLeapYear" do
    test "leap year" do
      Assert.equal true $ Leap.isLeapYear 1996
    test "non-leap year" do
      Assert.equal false $ Leap.isLeapYear 1997
    test "non-leap even year" do
      Assert.equal false $ Leap.isLeapYear 1998
    test "century" do
      Assert.equal false $ Leap.isLeapYear 1900
    test "second century" do
      Assert.equal false $ Leap.isLeapYear 1800
    test "fourth century" do
      Assert.equal true $ Leap.isLeapYear 2400
    test "y2k" do
      Assert.equal true $ Leap.isLeapYear 2000

Version data entries

223 entries across 223 versions & 1 rubygems

Version Path
trackler-2.2.1.37 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.36 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.35 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.34 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.33 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.32 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.31 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.30 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.29 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.28 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.27 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.26 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.25 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.24 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.23 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.22 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.21 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.20 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.19 tracks/purescript/exercises/leap/test/Main.purs
trackler-2.2.1.18 tracks/purescript/exercises/leap/test/Main.purs