Skip to content

Commit eb5f2a7

Browse files
committed
Merge branch 'testing-code' of github.com:rsokl/Learning_Python into testing-code
2 parents 25e25f4 + 407dc7d commit eb5f2a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/Module6_Testing/Hypothesis_Practice_Exercises.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ thus this section is dedicated to providing some useful exercises towards this e
2626

2727
<div class="alert alert-info">
2828

29-
**Exercise: Describing data with `st.lists`**
29+
**Exercise: Describing data with `st.lists()`**
3030

3131
Write a strategy that generates lists of even-valued integers, ranging from length-0 to length-10.
3232

@@ -40,7 +40,7 @@ Write a test that checks these properties and run the test.
4040

4141
**Exercise: Using Hypothesis to learn about floats.. Part 1**
4242

43-
Use the `st.floats` strategy to identify which float(s) violate the identity: `x == x`.
43+
Use the `st.floats()` strategy to identify which float(s) violate the identity: `x == x`.
4444
That is, write a hypothesis-driven test for which `assert x == x` *fails*, run the test, and identify the input that causes the failure.
4545

4646
Then, revise your usage of `st.floats` such that it only describes values that satisfy the identity.

0 commit comments

Comments
 (0)