Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ AssertionFailedError: Property [BST Properties:union valid]
right: NIL]
```

> Thus, at first sight, there is nothing to indicate that the bug is in `insert`; all of `insert`, `delete` and `union` can return invalid trees! However, `delete` and `unin` are given invalid trees as inputs in the tests above, and we cannot expect them to return valid trees in this case, so these reported failures are “false positives”.
> Thus, at first sight, there is nothing to indicate that the bug is in `insert`; all of `insert`, `delete` and `union` can return invalid trees! However, `delete` and `union` are given invalid trees as inputs in the tests above, and we cannot expect them to return valid trees in this case, so these reported failures are “false positives”.
>
> The problem here is that the generator for trees is producing invalid ones (because it is defined in terms of `insert`). We could add a precondition to each property, requiring the tree to be valid, as in:

Expand Down