package bastet
Module Bastet.TestSource
These helpers provide generative tests for implementations.
Generic helper to make an arbitrary(t('a)) type from a given arbitrary('a) type.
This module type is required to create the generative tests. Provide the framework-specific implementations here (ie: qcheck, jsverify,etc).
Source
module Array
(Arr : ArrayF.ARRAY)
(T : TEST)
(Q : QUICKCHECK with type t = T.test)
(A :
ARBITRARY with type t = int array and type 'a arbitrary = 'a Q.arbitrary)
(AA :
ARBITRARY_A
with type 'a t = 'a array
and type 'a arbitrary = 'a Q.arbitrary) :
sig ... endSource
module List
(T : TEST)
(Q : QUICKCHECK with type t = T.test)
(A : ARBITRARY with type t = int list and type 'a arbitrary = 'a Q.arbitrary)
(AA :
ARBITRARY_A with type 'a t = 'a list and type 'a arbitrary = 'a Q.arbitrary) :
sig ... endSource
module Option
(T : TEST)
(Q : QUICKCHECK with type t = T.test)
(A :
ARBITRARY with type t = int option and type 'a arbitrary = 'a Q.arbitrary)
(AA :
ARBITRARY_A
with type 'a t = 'a option
and type 'a arbitrary = 'a Q.arbitrary) :
sig ... end