Skip to main content

2 posts tagged with "stringMatching"

View All Tags

What's new in fast-check 4.6.0?

· 9 min read
Nicolas Dubien
fast-check maintainer

Until now, stringMatching had no built-in way to cap the length of the produced strings except applying a manual post-filter on the generated values. This release adds a maxLength constraint to ensure that values stay within bounds by construct without relying on excessive and costly filtering.

Our published bundle is also lighter by 17% as it went from 1618 kB to 1344 kB.

Continue reading to explore the detailed updates it brings.

What's new in fast-check 3.10.0?

· 5 min read
Nicolas Dubien
fast-check maintainer

This release comes with a new arbitrary called stringMatching. This arbitrary is responsible to generate strings matching the provided regex. It should ease the creation of new arbitraries dealing with strings by providing an easy way to build them.

Continue reading to explore the detailed updates it brings.