Skip to content

Commit

Permalink
Version 0.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
AltSysrq committed Feb 17, 2018
1 parent 9a84f3e commit b107e3f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Unreleased
## 0.5.0

### Potential Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proptest"
version = "0.4.2"
version = "0.5.0"
authors = ["Jason Lingle"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ In `Cargo.toml`, add

```toml
[dev-dependencies]
proptest = "0.4.2"
proptest = "0.5.0"
```

and at the top of `main.rs` or `lib.rs`:
Expand Down Expand Up @@ -366,11 +366,6 @@ shrinking based on the output value, whereas Proptest must hold on to all
the intermediate states and relationships in order for its richer shrinking
model to work.

- In cases where one usually does have a single canonical way to generate
values per type, Proptest will be more verbose than QuickCheck since one
needs to name the strategy every time rather than getting them implicitly
based on types.

## Limitations of Property Testing

Given infinite time, property testing will eventually explore the whole
Expand All @@ -385,7 +380,7 @@ use proptest::prelude::*;

proptest! {
#[test]
fn i64_abs_is_never_negative(a in prop::num::i64::ANY) {
fn i64_abs_is_never_negative(a in any::<i64>()) {
assert!(a.abs() >= 0);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
//!
//! ```toml
//! [dev-dependencies]
//! proptest = "0.4.2"
//! proptest = "0.5.0"
//! ```
//!
//! and at the top of `main.rs` or `lib.rs`:
Expand Down

0 comments on commit b107e3f

Please sign in to comment.