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