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.39 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.38 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.37 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.36 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.35 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.34 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.33 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.32 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.31 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.30 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.29 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.28 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.27 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.26 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.25 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.24 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.23 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.22 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.21 tracks/ocaml/exercises/leap/test.ml
trackler-2.2.1.20 tracks/ocaml/exercises/leap/test.ml