Sha256: 00d847677bde84d1cbf3119e7bdf38fb9e6c3f706d9d1bdfadca232463d0b308

Contents?: true

Size: 525 Bytes

Versions: 100

Compression:

Stored size: 525 Bytes

Contents

(* Test/exercise version: "1.0.0" *)

open Core
open OUnit2
open Leap

let ae exp got _test_ctxt = assert_equal exp got

let tests = [
  "year not divisible by 4: common year" >::
    ae false (leap_year 2015);
  "year divisible by 4, not divisible by 100: leap year" >::
    ae true (leap_year 2016);
  "year divisible by 100, not divisible by 400: common year" >::
    ae false (leap_year 2100);
  "year divisible by 400: leap year" >::
    ae true (leap_year 2000);
]

let () =
  run_test_tt_main ("leap tests" >::: tests)

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
trackler-2.2.1.59 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.58 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.57 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.56 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.55 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.54 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.53 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.52 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.51 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.50 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.49 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.48 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.47 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.46 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.45 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.44 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.43 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.42 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.41 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.40 tracks/ocaml/exercises/leap/test.ml