Skip to content

Add contains_regex(regex_pattern) matcher#18

Open
davified wants to merge 2 commits intomwilliamson:masterfrom
davified:master
Open

Add contains_regex(regex_pattern) matcher#18
davified wants to merge 2 commits intomwilliamson:masterfrom
davified:master

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