| 1 |
# This test code was written by the `hypothesis.extra.ghostwriter` module |
| 2 |
# and is provided under the Creative Commons Zero public domain dedication. |
| 3 |
|
| 4 |
import test_expected_output |
| 5 |
from hypothesis import given, strategies as st |
| 6 |
|
| 7 |
|
| 8 |
@given( |
| 9 |
a=st.lists(st.integers()), |
| 10 |
b=st.one_of(st.none(), st.builds(list), st.builds(tuple)), |
| 11 |
c=st.sampled_from(["foo", "bar", None]), |
| 12 |
d=st.just(int), |
| 13 |
e=st.just(lambda x: f"xx{x}xx"), |
| 14 |
) |
| 15 |
def test_fuzz_with_docstring(a, b, c, d, e): |
| 16 |
test_expected_output.with_docstring(a=a, b=b, c=c, d=d, e=e) |