Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/timsort_idempotent.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 import collections.abc
5 import test_expected_output
6 from hypothesis import given, strategies as st
7
8
9 @given(seq=st.one_of(st.binary(), st.lists(st.integers())))
10 def test_idempotent_timsort(seq: collections.abc.Sequence[int]) -> None:
11 result = test_expected_output.timsort(seq=seq)
12 repeat = test_expected_output.timsort(seq=result)
13 assert result == repeat, (result, repeat)