···14141515 exception Stuck of G.vertex list
16161717- module IM = Map.Make (Int)
1717+ module IM = Map.Make (struct type t = int let compare = Stdlib.compare end)
1818 module VM = Map.Make (G.V)
1919 module VS = Set.Make (G.V)
2020
···22222323open Pack.Graph
24242525+(* FIXME: do not use Random here, as OCaml 5.0 seems to generate a
2626+ different graph *)
2727+2528let () =
2629 Random.init 42;
2730 let g = Rand.graph ~v:10 ~e:3 () in
+4-1
tests/test_map_vertex.ml
···2828module TestI(G: Sig.I with type V.label = int) = TestB(Builder.I(G))
2929module TestP(G: Sig.P with type V.label = int) = TestB(Builder.P(G))
30303131-module Int = struct include Int let hash x = x let default = 42 end
3131+module Int = struct
3232+ type t = int let compare = Stdlib.compare let equal = (=)
3333+ let hash x = x let default = 42
3434+end
32353336include TestI(Pack.Digraph)
3437include TestI(Pack.Graph)