Sha256: 45b11153a058d06e837a2d92e7fb77fd8101c516a144b271b5f6c68a3be2190e

Contents?: true

Size: 445 Bytes

Versions: 396

Compression:

Stored size: 445 Bytes

Contents

#lang racket/base

(require "leap.rkt")

(module+ test
  (require rackunit rackunit/text-ui)

  (define suite
    (test-suite
     "leap tests"

     (test-eqv? "vanilla-leap-year" (leap-year? 1996) #t)
     (test-eqv? "any-old-year" (leap-year? 1997)#f)
     (test-eqv? "non-leap-even-year" (leap-year? 1998) #f)
     (test-eqv? "century" (leap-year? 1900)#f)
     (test-eqv? "exceptional-century" (leap-year? 2400) #t)))

  (run-tests suite))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.179 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.178 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.177 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.176 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.175 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.174 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.173 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.172 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.171 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.170 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.169 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.167 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.166 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.165 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.164 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.163 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.162 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.161 tracks/racket/exercises/leap/leap-test.rkt
trackler-2.2.1.160 tracks/racket/exercises/leap/leap-test.rkt