Skip to content
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

Add contains_regex(regex_pattern) matcher #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

davified
Copy link

Heya @mwilliamson , thanks again for the great work on this library.

This PR adds a new matcher contains_regex(...), as requested in #16. For example:

assert_that("2020-01-01", contains_regex(r'[\d]{4}-[\d]{2}-[\d]{2}'))

I've added unit tests for the new method, and all the unit tests are passing

Keen to hear your thoughts/feedback. Cheers :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants