Skip to content

Commit

Permalink
Merge pull request #454 from Jefffrey/fix-book-links
Browse files Browse the repository at this point in the history
doc: fix broken links in book
  • Loading branch information
rexmas authored May 27, 2024
2 parents c117b76 + 6bcaa0b commit a62a348
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion book/src/proptest/tutorial/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ limited. Creating such strategies with `prop_compose!` is possible but
generally is not very readable, so in most cases defining the function by
hand is preferable.

The core building block is the [`prop_oneof!`](macro.prop_oneof.html)
The core building block is the
[`prop_oneof!`](https://docs.rs/proptest/latest/proptest/macro.prop_oneof.html)
macro, in which you list one case for each case in your `enum`. For `enum`s
which have no data, the strategy for each case is
`Just(YourEnum::TheCase)`. Enum cases with data generally require putting
Expand Down
9 changes: 4 additions & 5 deletions book/src/proptest/tutorial/test-runner.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Using the Test Runner

Rather than manually shrinking, proptest's
[`TestRunner`](test_runner/struct.TestRunner.html) provides this
functionality for us and additionally handles things like panics. The
method we're interested in is `run`. We simply
give it the strategy and a function to test inputs and it takes care of the
rest.
[`TestRunner`](https://docs.rs/proptest/latest/proptest/test_runner/struct.TestRunner.html)
provides this functionality for us and additionally handles things like panics.
The method we're interested in is `run`. We simply give it the strategy and a
function to test inputs and it takes care of the rest.

```rust
# extern crate proptest;
Expand Down

0 comments on commit a62a348

Please sign in to comment.