Skip to main content

3 posts tagged with "stringMatching"

View All Tags

What's new in fast-check 4.7.0?

· 5 min read
Nicolas Dubien
fast-check maintainer

Until now, Unicode property escapes of the form \p{...} or \P{...} were not implemented in stringMatching. This release adds support for them so stringMatching can generate matching values directly.

This release also makes fc.json() reversible, allowing arbitrary JSON strings to be shrunk even when they did not originate from fast-check itself.

Continue reading to explore the detailed updates it brings.

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.