Skip to content

Commit 51e3256

Browse files
committed
add nasty strings shrink test
1 parent fa9c469 commit 51e3256

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hypothesis-python/tests/quality/test_shrink_quality.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,3 +526,11 @@ def test_minimize_duplicated_characters_within_a_choice():
526526
)
527527
== "0001"
528528
)
529+
530+
531+
def test_nasty_string_shrinks():
532+
# failures found via NASTY_STRINGS should shrink like normal
533+
assert (
534+
minimal(st.text(), lambda s: "𝕿𝖍𝖊" in s, settings=settings(max_examples=10000))
535+
== "𝕿𝖍𝖊"
536+
)

0 commit comments

Comments
 (0)