Skip to content

Commit a8a11b3

Browse files
committed
add another test
1 parent e2ef70a commit a8a11b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hypothesis-python/tests/quality/test_shrink_quality.py

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ def test_minimize_sets_of_sets():
107107
assert any(s != t and t.issubset(s) for t in set_of_sets)
108108

109109

110+
def test_minimize_sets_sampled_from():
111+
assert minimal(st.sets(st.sampled_from(range(10)), min_size=3)) == {0, 1, 2}
112+
113+
110114
def test_can_simplify_flatmap_with_bounded_left_hand_size():
111115
assert (
112116
minimal(booleans().flatmap(lambda x: lists(just(x))), lambda x: len(x) >= 10)

0 commit comments

Comments
 (0)