ocaml-containers/tests/test_heap.ml
2013-03-05 00:49:02 +01:00

12 lines
232 B
OCaml

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