Skip to content

feat: regular expression conjecture #2

Open
@danielknell

Description

@danielknell

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)

Metadata

Metadata

Assignees

Labels

featA new feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions