We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b9b1c1 + 08ff3b4 commit cf033fcCopy full SHA for cf033fc
src/floatarray/stm_tests.ml
@@ -38,7 +38,8 @@ struct
38
type sut = Float.Array.t
39
40
let arb_cmd s =
41
- let int_gen = Gen.(oneof [small_nat; int_bound (List.length s - 1)]) in
+ let int_gen = Gen.(frequency [ (1,small_nat);
42
+ (7,int_bound (List.length s - 1)); ]) in
43
let float_gen = Gen.float in
44
QCheck.make ~print:show_cmd (*~shrink:shrink_cmd*)
45
Gen.(oneof
@@ -124,7 +125,7 @@ struct
124
125
if i < 0 || l < 0 || i+l > List.length s
126
then r = Error (Invalid_argument "Float.Array.fill")
127
else r = Ok ()
- | To_list, Res ((List Float,_),fs) -> fs = s
128
+ | To_list, Res ((List Float,_),fs) -> List.equal Float.equal fs s
129
| Mem f, Res ((Bool,_),r) -> r = List.mem f s
130
| Sort, Res ((Unit,_),r) -> r = ()
131
| To_seq, Res ((Seq Float,_),r) -> Seq.equal (=) r (List.to_seq s)
0 commit comments