Skip to content

Commit 0e5cf33

Browse files
committed
update kcas tests after refactoring
1 parent b64c3a6 commit 0e5cf33

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/kcas/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(name lin_tests)
1111
(modules lin_tests)
1212
(flags (:standard -w -27))
13-
(libraries lin kcas)
13+
(libraries qcheck-lin.domain kcas)
1414
(preprocess (pps ppx_deriving_qcheck ppx_deriving.show ppx_deriving.eq)))
1515

1616
; disable kcas test for now
@@ -23,7 +23,7 @@
2323
(executable
2424
(name lin_tests_dsl)
2525
(modules lin_tests_dsl)
26-
(libraries lin kcas)
26+
(libraries qcheck-lin.domain kcas)
2727
(preprocess (pps ppx_deriving.show ppx_deriving.eq)))
2828

2929
; (rule

src/kcas/lin_tests.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct
5353
let cleanup _ = ()
5454
end
5555

56-
module KT = Lin.Make(KConf)
56+
module KT = Lin_domain.Make_internal(KConf)
5757

5858

5959
(** ********************************************************************** *)
@@ -108,10 +108,10 @@ struct
108108
let cleanup _ = ()
109109
end
110110

111-
module KW1T = Lin.Make(KW1Conf)
111+
module KW1T = Lin_domain.Make_internal(KW1Conf)
112112
;;
113113
QCheck_base_runner.run_tests_main [
114114
(* Kcas tests *)
115-
KT.neg_lin_test `Domain ~count:1000 ~name:"Lin Kcas test with Domain";
116-
KW1T.lin_test `Domain ~count:1000 ~name:"Lin Kcas.W1 test with Domain";
115+
KT.neg_lin_test ~count:1000 ~name:"Lin Kcas test with Domain";
116+
KW1T.lin_test ~count:1000 ~name:"Lin Kcas.W1 test with Domain";
117117
]

src/kcas/lin_tests_dsl.ml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ struct
1010
| Success of 'a [@@deriving show { with_path = false }, eq]
1111

1212
let cas_result ty =
13-
Lin_api.deconstructible (show_cas_result (fun fmt a -> Format.pp_print_string fmt (Lin_api.print ty a))) (equal_cas_result (Lin_api.equal ty))
13+
Lin_base.deconstructible (show_cas_result (fun fmt a -> Format.pp_print_string fmt (Lin_base.print ty a))) (equal_cas_result (Lin_base.equal ty))
1414

1515
let fun_none _ty =
1616
let print_fun _ = "(fun _ -> None)" in
1717
let fun_gen = QCheck.(make ~print:print_fun (Gen.return (fun _ -> None))) in
18-
Lin_api.gen fun_gen print_fun
18+
Lin_base.gen fun_gen print_fun
1919

2020
let fun_some _ty =
2121
let print_fun _ = "(fun i -> Some i)" in
2222
let fun_gen = QCheck.(make ~print:print_fun (Gen.return (fun i -> Some i))) in
23-
Lin_api.gen fun_gen print_fun
23+
Lin_base.gen fun_gen print_fun
2424
end
2525

2626
module KConf =
@@ -29,7 +29,7 @@ struct
2929
let init () = Kcas.ref 0
3030
let cleanup _ = ()
3131

32-
open Lin_api
32+
open Lin_base
3333
let int = nat_small
3434
let fun_none,fun_some,cas_result = Common.(fun_none,fun_some,cas_result)
3535
let api =
@@ -45,7 +45,7 @@ struct
4545
]
4646
end
4747

48-
module KT = Lin_api.Make(KConf)
48+
module KT = Lin_domain.Make(KConf)
4949

5050

5151
(* ********************************************************************** *)
@@ -57,7 +57,7 @@ struct
5757
let init () = Kcas.W1.ref 0
5858
let cleanup _ = ()
5959

60-
open Lin_api
60+
open Lin_base
6161
let int = nat_small
6262
let fun_none,fun_some,cas_result = Common.(fun_none,fun_some,cas_result)
6363
let api =
@@ -73,9 +73,9 @@ struct
7373
]
7474
end
7575

76-
module KW1T = Lin_api.Make(KW1Conf)
76+
module KW1T = Lin_domain.Make(KW1Conf)
7777
;;
7878
QCheck_base_runner.run_tests_main [
79-
KT.neg_lin_test `Domain ~count:1000 ~name:"Lin_api Kcas test with Domain";
80-
KW1T.lin_test `Domain ~count:1000 ~name:"Lin_api Kcas.W1 test with Domain";
79+
KT.neg_lin_test ~count:1000 ~name:"Lin_api Kcas test with Domain";
80+
KW1T.lin_test ~count:1000 ~name:"Lin_api Kcas.W1 test with Domain";
8181
]

0 commit comments

Comments
 (0)