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.151 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.150 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.149 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.148 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.147 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.146 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.145 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.144 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.143 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.142 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.141 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.140 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.139 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.138 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.137 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.136 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.135 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.134 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.133 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.132 tracks/nim/exercises/leap/leap_test.nim