ocaml-containers/tests/test_pHashtbl.ml
2013-03-04 13:49:08 +01:00

12 lines
214 B
OCaml

open OUnit
let test_add () =
let h = PHashtbl.create 5 in
PHashtbl.replace h 42 "foo";
OUnit.assert_equal (PHashtbl.find h 42) "foo"
let suite =
"test_pHashtbl" >:::
[ "test_add" >:: test_add;
]