Skip to content

Commit 7100076

Browse files
committed
fix test file
1 parent 83412ae commit 7100076

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_149.ml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11

22
(* Issue #149 *)
33

4-
module G = Graph.Persistent.Digraph.Concrete(String)
4+
module G = Graph.Persistent.Digraph.Concrete(
5+
struct
6+
type t = string
7+
let compare = compare
8+
let hash = Hashtbl.hash
9+
let equal = (=)
10+
end)
511

612
let g0 = G.empty
713
let g1 = G.add_edge g0 "a" "b"
@@ -12,4 +18,3 @@ module Topo = Graph.Topological.Make_stable(G)
1218

1319
let l = Topo.fold (fun v l -> v :: l) g []
1420
let () = assert (l = ["b"; "c"; "a"])
15-

0 commit comments

Comments
 (0)