package preface

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file bounded_meet_semilattice.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Suite
    (R : Model.COVARIANT_0)
    (L : Preface_specs.BOUNDED_MEET_SEMILATTICE with type t = R.t) =
struct
  module Laws = Preface_laws.Bounded_meet_semilattice.For (L)

  let print = Format.asprintf "%a" R.pp

  module Meet_semilattice = Meet_semilattice.Suite (R) (L)

  let bounded_meet_semilattice_1 count =
    let generator = R.generator in
    Util.test ~count ~print generator Laws.bounded_meet_semilattice_1
      (fun lhs rhs x ->
        let left = lhs x
        and right = rhs L.top in
        R.equal left right )
  ;;

  let tests ~count =
    Meet_semilattice.tests ~count @ [ bounded_meet_semilattice_1 count ]
  ;;
end
OCaml

Innovation. Community. Security.