hypothesis-python/tests/ghostwriter/recorded/fuzz_sorted.txt
raw| 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 | from hypothesis import given, strategies as st |
| 5 | |
| 6 | |
| 7 | @given( |
| 8 | iterable=st.one_of(st.iterables(st.integers()), st.iterables(st.text())), |
| 9 | key=st.none(), |
| 10 | reverse=st.booleans(), |
| 11 | ) |
| 12 | def test_fuzz_sorted(iterable, key, reverse): |
| 13 | sorted(iterable, key=key, reverse=reverse) |