File: test_using_comparator.ml

package info (click to toggle)
janest-base 0.17.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,632 kB
  • sloc: ml: 48,653; ansic: 281; javascript: 126; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
open! Base
include Test_using_comparator_intf.Definitions
include (Base.Map.Using_comparator : S)

let%expect_test "[Base.Map.Using_comparator] creators/accessors" =
  let open
    Functor.Test_creators_and_accessors (Types) (Base.Map.Using_comparator)
      (struct
        include Functor.Instance (Int)

        let create f = f ~comparator:Int.comparator
        let access x = x
      end) in
  [%expect {| |}]
;;