File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
33{1 Content}
44
5- - {!module-STM_base }.
5+ - {!module-STM }.
66- {!module-STM_sequential} exposes a functor that allows to test a library sequentially.
77- {!module-STM_domain} exposes a functor that allows to test a library in parallel (with domains).
88- {!module-STM_thread} exposes a functor that allows to test a library in concurrency (with threads).
8686In order to use [qcheck.stm] to test our implementation, the first thing we
8787need to do is to provide a description of this library. We call this
8888description a specification and it takes the form of a module of type
89- {{!module-STM_base .Spec}Spec}. In this module, the user describes three things:
89+ {{!module-STM .Spec}Spec}. In this module, the user describes three things:
9090
9191{ol
9292{- the library to be tested,}
@@ -98,7 +98,7 @@ Here is the specification of our little mutable set library:
9898
9999{[
100100open QCheck
101- open STM_base
101+ open STM
102102
103103module Lib_spec : Spec = struct
104104 module S = Lib.Make (Int)
@@ -168,7 +168,7 @@ yourself if you prefer.
168168
169169Finally, the [run] function calls the library's function with the given arguments
170170and [sut] and wraps the result with information about its type in a
171- {{!STM_base .res}res} type.
171+ {{!STM .res}res} type.
172172
173173{3 The model definition}
174174
Original file line number Diff line number Diff line change 3232end
3333
3434open QCheck
35- open STM_base
35+ open STM
3636
3737module Lib_spec : Spec = struct
3838
Original file line number Diff line number Diff line change 11open QCheck
2- open STM_base
2+ open STM
33
44module type S = sig
55 type elt
Original file line number Diff line number Diff line change 3737end
3838
3939open QCheck
40- open STM_base
40+ open STM
4141
4242module Lib_spec : Spec = struct
4343
Original file line number Diff line number Diff line change 5050end
5151
5252open QCheck
53- open STM_base
53+ open STM
5454
5555module Lib_spec : Spec = struct
5656
Original file line number Diff line number Diff line change 6565end
6666
6767open QCheck
68- open STM_base
68+ open STM
6969
7070module Lib_spec : Spec = struct
7171
You can’t perform that action at this time.
0 commit comments