Skip to content

Commit 2b41106

Browse files
committed
fix CHANGELOG and restore Float.equal
1 parent 0d6b8f8 commit 2b41106

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22

33
## 0.20
44

5-
- add `{QCheck,QCheck2}.Gen.{bytes_size,bytes,bytes_of,bytes_printable,small_bytes}`
6-
- add `QCheck.{Print,Shrink,Observable}.bytes`
7-
- add `QCheck2.{Print,Shrink}.bytes`
8-
- add `QCheck.{bytes_gen_of_size,bytes_gen,bytes,small_bytes,bytes_of_size,printable_bytes,printable_bytes_of_size,numeral_bytes,numeral_bytes_of_size}`
9-
- add `{QCheck,QCheck2}.Gen.{bytes_size,bytes,bytes_of,bytes_printable,bytes_small,string_small}`
5+
- add `{QCheck,QCheck2}.Gen.{bytes_size,bytes,bytes_of,bytes_printable,bytes_small}`
6+
- add `QCheck2.Gen.string_small`
107
- add `QCheck.{Print,Shrink,Observable}.bytes`
118
- add `QCheck2.{Print,Shrink}.bytes`
129
- add `QCheck.{bytes_gen_of_size,bytes_gen,bytes,bytes_small,bytes_of_size,bytes_printable}`
1310
- add `QCheck.{string_small,string_printable,string_printable_of_size,string_small_printable,string_numeral,string_numeral_of_size}`
14-
- `QCheck2.{small_string}` character generator argument is no more optional
11+
- `QCheck2.small_string` character generator argument is no more optional
1512
- add an optional argument with conservative default to `Shrink.string`
1613
- fix shrinkers in `QCheck.{printable_string,printable_string_of_size,small_printable_string,numeral_string,numeral_string_of_size}` [#257](https://github.com/c-cube/qcheck/issues/257)
1714
- add `QCheck2.Gen.set_shrink` to modify the generator's shrinker

src/core/QCheck.mli

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,15 @@ val bytes_small : bytes arbitrary
12891289
(** Same as {!bytes} but with a small length (ie {!Gen.small_nat} ).
12901290
@since NEXT_RELEASE *)
12911291

1292+
val bytes_of_size : int Gen.t -> bytes arbitrary
1293+
(** Generates bytes with distribution of characters of [char].
1294+
@since NEXT_RELEASE *)
1295+
1296+
val bytes_printable : bytes arbitrary
1297+
(** Generates bytes with a distribution of length of {!Gen.nat}
1298+
and distribution of characters of [printable_char].
1299+
@since NEXT_RELEASE *)
1300+
12921301
val string_gen_of_size : int Gen.t -> char Gen.t -> string arbitrary
12931302
(** Builds a string generator from a (non-negative) size generator and a character generator. *)
12941303

@@ -1310,15 +1319,6 @@ val small_list : 'a arbitrary -> 'a list arbitrary
13101319
(** Generates lists of small size (see {!Gen.small_nat}).
13111320
@since 0.5.3 *)
13121321

1313-
val bytes_of_size : int Gen.t -> bytes arbitrary
1314-
(** Generates bytes with distribution of characters of [char].
1315-
@since NEXT_RELEASE *)
1316-
1317-
val bytes_printable : bytes arbitrary
1318-
(** Generates bytes with a distribution of length of {!Gen.nat}
1319-
and distribution of characters of [printable_char].
1320-
@since NEXT_RELEASE *)
1321-
13221322
val string_of_size : int Gen.t -> string arbitrary
13231323
(** Generates strings with distribution of characters of [char]. *)
13241324

src/core/QCheck2.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ module Observable = struct
998998

999999
let bool : bool t = (=)
10001000

1001-
let float : float t = (=)
1001+
let float = Float.equal
10021002

10031003
let unit () () = true
10041004

0 commit comments

Comments
 (0)