ocaml-containers/tests/test_heap.ml
2013-03-04 15:35:34 +01:00

12 lines
227 B
OCaml

(** Test heaps *)
open OUnit
let test_empty () =
let h = Heap.empty ~lt:(fun x y -> x < y) in
OUnit.assert_bool "is_empty empty" (Heap.is_empty h)
let suite =
"test_heaps" >:::
[ "test_empty" >:: test_empty;
]