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.131 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.130 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.129 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.128 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.127 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.126 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.125 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.124 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.123 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.122 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.121 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.120 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.119 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.118 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.117 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.116 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.115 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.114 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.113 tracks/nim/exercises/leap/leap_test.nim
trackler-2.2.1.111 tracks/nim/exercises/leap/leap_test.nim