Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlesbre committed Jul 17, 2024
1 parent 8a02e3d commit c73be2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Here is a small example of a non-generic map:
but you can use any type, so long as it supports an efficient and injective
{{!PatriciaTree.Sigs.KEY.to_int}[to_int]} function.
{@ocaml[
module IntKey : PatriciaTree.KEY with type t = int = struct
module IntKey : PatriciaTree.Sigs.KEY with type t = int = struct
type t = int
let to_int x = x
end
Expand Down Expand Up @@ -334,7 +334,7 @@ liberty of having a generic type as a key.
| G_Equal(l,r) -> 3 + 4*(to_int l mod 10000 + 10000*(to_int r))

(** Full polymorphic equality, requires annotation to type properly *)
let rec polyeq : type a b. a expr -> b expr -> (a, b) PatriciaTree.cmp =
let rec polyeq : type a b. a expr -> b expr -> (a, b) PatriciaTree.Sigs.cmp =
fun l r -> match l, r with
| G_Const_Int l, G_Const_Int r -> if l = r then Eq else Diff
| G_Const_Bool l, G_Const_Bool r -> if l = r then Eq else Diff
Expand Down
1 change: 1 addition & 0 deletions src/test/mdx_prelude.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
comments don't have to *)

open PatriciaTree
open Sigs

type foo

Expand Down

0 comments on commit c73be2b

Please sign in to comment.