Skip to content

Commit

Permalink
readme: bump quickcheck version
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Dec 30, 2017
1 parent b616faf commit 5d7bcd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 92,23 @@ mod tests {

```toml
[dependencies]
quickcheck = "0.4"
quickcheck = "0.6"
```

If you're only using `quickcheck` in your test code, then you can add it as a
development dependency instead:

```toml
[dev-dependencies]
quickcheck = "0.4"
quickcheck = "0.6"
```

If you want to use the `#[quickcheck]` attribute, then add `quickcheck_macros`

```toml
[dev-dependencies]
quickcheck = "0.4"
quickcheck_macros = "0.4"
quickcheck = "0.6"
quickcheck_macros = "0.6"
```

and only enable the `quickcheck_macros` plugin for the test build
Expand Down Expand Up @@ -232,7 232,7 @@ quickcheck(prop as fn(Vec<isize>) -> TestResult);
So now our property returns a `TestResult`, which allows us to encode a bit
more information. There are a few more
[convenience functions defined for the `TestResult`
type](http://docs.rs/quickcheck/0.5.0/quickcheck/struct.TestResult.html).
type](http://docs.rs/quickcheck/0.6.0/quickcheck/struct.TestResult.html).
For example, we can't just return a `bool`, so we convert a `bool` value to a
`TestResult`.

Expand Down

0 comments on commit 5d7bcd9

Please sign in to comment.