Skip to content

feat: regular expression conjecture #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
danielknell opened this issue Jun 19, 2022 · 0 comments
Open

feat: regular expression conjecture #2

danielknell opened this issue Jun 19, 2022 · 0 comments
Assignees
Labels
feat A new feature

Comments

@danielknell
Copy link
Member

danielknell commented Jun 19, 2022

Description

a conjecture that checks a value matches a given regular expression pattern.

Context

There is currently support for prefix and suffix matching, but sometimes you need a more complex match.

Possible implementation

assert "foo bar baz" == conjecture.matches_regex(r"\bbar\b")

assert "FOO BAR BAZ" == conjecture.matches_regex(r"\bbar\b", flags=re.IGNORECASE)
@danielknell danielknell added the feat A new feature label Jun 19, 2022
@danielknell danielknell self-assigned this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat A new feature
Projects
None yet
Development

No branches or pull requests

1 participant