Skip to content

Commit

Permalink
add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed May 15, 2024
1 parent e2ef70a commit a8a11b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hypothesis-python/tests/quality/test_shrink_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def test_minimize_sets_of_sets():
assert any(s != t and t.issubset(s) for t in set_of_sets)


def test_minimize_sets_sampled_from():
assert minimal(st.sets(st.sampled_from(range(10)), min_size=3)) == {0, 1, 2}


def test_can_simplify_flatmap_with_bounded_left_hand_size():
assert (
minimal(booleans().flatmap(lambda x: lists(just(x))), lambda x: len(x) >= 10)
Expand Down

0 comments on commit a8a11b3

Please sign in to comment.