Skip to content

Commit 2a2bfa3

Browse files
committed
Adapt the example Lin test to the new interface
1 parent 353eab4 commit 2a2bfa3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/example/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(executable
44
(name lin_tests_dsl)
55
(modules lin_tests_dsl)
6-
(libraries qcheck-lin))
6+
(libraries qcheck-lin.domain))
77

88

99
;; A model-based test of the stdlib Hashtbl library

doc/example/lin_tests_dsl.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct
77
let init () = Hashtbl.create ~random:false 42
88
let cleanup _ = ()
99

10-
open Lin_api
10+
open Lin_base
1111
let a,b = char_printable,nat_small
1212
let api =
1313
[ val_ "Hashtbl.add" Hashtbl.add (t @-> a @-> b @-> returning unit);
@@ -17,8 +17,8 @@ struct
1717
val_ "Hashtbl.length" Hashtbl.length (t @-> returning int); ]
1818
end
1919

20-
module HT = Lin_api.Make(HashtblSig)
20+
module HT = Lin_domain.Make(HashtblSig)
2121
;;
2222
QCheck_base_runner.run_tests_main [
23-
HT.lin_test `Domain ~count:1000 ~name:"Hashtbl DSL test";
23+
HT.lin_test ~count:1000 ~name:"Hashtbl DSL test";
2424
]

0 commit comments

Comments
 (0)