Sha256: 5681c7ad37e73226d94ede5e14dc3e0349310d3e3a995ac15c26e59d5a2ce158

Contents?: true

Size: 250 Bytes

Versions: 368

Compression:

Stored size: 250 Bytes

Contents

import unittest
from leap import isLeapYear

test "vanilla leap year":
  check isLeapYear(1996)

test "normal year":
  check (not isLeapYear(1997))

test "century":
  check (not isLeapYear(1900))

test "exceptional century":
  check isLeapYear(2000)

Version data entries

368 entries across 368 versions & 1 rubygems

Version Path
trackler-2.2.1.90 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.89 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.88 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.87 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.86 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.85 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.84 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.83 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.82 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.81 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.80 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.79 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.78 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.77 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.76 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.75 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.74 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.73 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.72 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.71 tracks/nim/exercises/leap/leap_test.nim