Update book/src/dev/proptests.md

Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>
This commit is contained in:
Alfredo Garcia 2021-04-29 09:26:38 -03:00 committed by Deirdre Connolly
parent 661a8d57dc
commit a63c2e8c40
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Zebra uses the [proptest](https://docs.rs/proptest/) crate for randomised proper
Most types in `zebra-chain` have an `Arbitrary` implementation, which generates randomised test cases.
We try ti derive `Arbitrary` impls whenever possible, so that they autoamtically update when we make structural changes.
We try to derive `Arbitrary` impls whenever possible, so that they automatically update when we make structural changes.
To derive, add the following attribute to the struct or enum:
```rust
#[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))]