Skip to content

Commit a3c8618

Browse files
committed
prepare for 0.10
1 parent cbcfa31 commit a3c8618

7 files changed

+30
-16
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changes
22

3+
## 0.10
4+
5+
- `Shrink`: decompose Shrink.list into Shrink.list_spine and Shrink.list_elems
6+
- `Gen.fix` has a more general and useful type
7+
- update README to include `Rely` section (qcheck now available for reason-native!)
8+
- Fix stat printing
9+
- speed-up list shrinker
10+
- Better int shrinking
11+
- core: modify proba distributions again, add `big_nat`
12+
- feat: add `small_array`, modify distributions
13+
- print number of warnings in runner's summary
14+
- refactor: modify type of results to make them more accurate
15+
- feat: warn/fail if too many tests passed only b/c precondition failed
16+
317
## 0.9
418

519
- add `qcheck-ounit` sublibrary

qcheck-alcotest.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: [ "Simon Cruanes <[email protected]>" ]
44
homepage: "https://github.com/c-cube/qcheck/"
55
synopsis: "Alcotest backend for qcheck"
66
doc: ["http://c-cube.github.io/qcheck/"]
7-
version: "0.9"
7+
version: "0.10"
88
tags: [
99
"test"
1010
"property"
@@ -18,7 +18,7 @@ run-test: [
1818
["dune" "runtest" "-p" name]
1919
]
2020
depends: [
21-
"dune" {build}
21+
"dune"
2222
"base-bytes"
2323
"base-unix"
2424
"qcheck-core" { >= "0.9" }

qcheck-core.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: [ "Simon Cruanes <[email protected]>" ]
44
homepage: "https://github.com/c-cube/qcheck/"
55
synopsis: "Core qcheck library"
66
doc: ["http://c-cube.github.io/qcheck/"]
7-
version: "0.9"
7+
version: "0.10"
88
tags: [
99
"test"
1010
"property"
@@ -18,7 +18,7 @@ run-test: [
1818
["dune" "runtest" "-p" name]
1919
]
2020
depends: [
21-
"dune" {build}
21+
"dune"
2222
"base-bytes"
2323
"base-unix"
2424
"odoc" {with-doc}

qcheck-ounit.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: [ "Simon Cruanes <[email protected]>" ]
44
homepage: "https://github.com/c-cube/qcheck/"
55
doc: ["http://c-cube.github.io/qcheck/"]
66
synopsis: "OUnit backend for qcheck"
7-
version: "0.9"
7+
version: "0.10"
88
tags: [
99
"test"
1010
"property"
@@ -18,7 +18,7 @@ run-test: [
1818
["dune" "runtest" "-p" name]
1919
]
2020
depends: [
21-
"dune" {build}
21+
"dune"
2222
"base-bytes"
2323
"base-unix"
2424
"qcheck-core" { >= "0.9" }

qcheck.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: [ "Simon Cruanes <[email protected]>" ]
44
synopsis: "Compatibility package for qcheck"
55
homepage: "https://github.com/c-cube/qcheck/"
66
doc: ["http://c-cube.github.io/qcheck/"]
7-
version: "0.9"
7+
version: "0.10"
88
tags: [
99
"test"
1010
"property"
@@ -18,7 +18,7 @@ run-test: [
1818
["dune" "runtest" "-p" name]
1919
]
2020
depends: [
21-
"dune" {build}
21+
"dune"
2222
"base-bytes"
2323
"base-unix"
2424
"qcheck-core" { >= "0.9" }

src/core/QCheck.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ module TestResult = struct
10961096
type 'a failed_state = 'a counter_ex list
10971097

10981098
(** Result state.
1099-
changed in NEXT_RELEASE (move to inline records) *)
1099+
changed in 0.10 (move to inline records) *)
11001100
type 'a state =
11011101
| Success
11021102
| Failed of {

src/core/QCheck.mli

+7-7
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ module Gen : sig
202202

203203
val nat : int t (** Generates small natural numbers. *)
204204

205-
val big_nat : int t (** Generates natural numbers, possibly large. @since NEXT_RELEASE *)
205+
val big_nat : int t (** Generates natural numbers, possibly large. @since 0.10 *)
206206

207207
val neg_int : int t (** Generates non-strictly negative integers (0 included). *)
208208

@@ -297,7 +297,7 @@ module Gen : sig
297297

298298
val small_array : 'a t -> 'a array t
299299
(** Generates arrays of small size (see {!small_nat}).
300-
@since NEXT_RELEASE *)
300+
@since 0.10 *)
301301

302302
val join : 'a t t -> 'a t
303303
(** Collapses a generator of generators to simply a generator.
@@ -469,11 +469,11 @@ module Shrink : sig
469469

470470
val list_spine : 'a list t
471471
(** Try to shrink lists by removing one or more elements.
472-
@since NEXT_RELEASE *)
472+
@since 0.10 *)
473473

474474
val list_elems : 'a t -> 'a list t
475475
(** Shrinks the elements of a list, without changing the list size.
476-
@since NEXT_RELEASE *)
476+
@since 0.10 *)
477477

478478
val array : ?shrink:'a t -> 'a array t
479479
(** Shrink an array.
@@ -626,7 +626,7 @@ module TestResult : sig
626626
type 'a failed_state = 'a counter_ex list
627627

628628
(** Result state.
629-
changed in NEXT_RELEASE (move to inline records, add Fail_other) *)
629+
changed in 0.10 (move to inline records, add Fail_other) *)
630630
type 'a state =
631631
| Success
632632
| Failed of {
@@ -662,7 +662,7 @@ module TestResult : sig
662662

663663
val warnings : _ t -> string list
664664
(** Obtain list of warnings
665-
@since NEXT_RELEASE *)
665+
@since 0.10 *)
666666

667667
val is_success : _ t -> bool
668668
(** Returns true iff the state if [Success]
@@ -709,7 +709,7 @@ module Test : sig
709709
The fraction should be between 0. and 1.
710710
A warning will be emitted otherwise if
711711
the flag is [`Warning], the test will be a failure if the flag is [`Fatal].
712-
(since NEXT_RELEASE)
712+
(since 0.10)
713713
*)
714714

715715
val get_arbitrary : 'a cell -> 'a arbitrary

0 commit comments

Comments
 (0)