-
Notifications
You must be signed in to change notification settings - Fork 7
Adds regex_equal/regex_not_equal #120
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
Conversation
zachcran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for a few documentation tweaks.
Co-authored-by: Zachery Crandall <zachcran@gmail.com>
|
@ryanmrichard Thanks for the quick integration! Looks great. |
zachcran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
🚀 [bumpr] Bumped! |
Is this pull request associated with an issue(s)?
Closes #119.
Description
Huge thanks to @josephgarnier for the implementation!
This PR adds two new asserts,
ct_assert_regex_equalandct_assert_regex_not_equal, that can be used to assert that a regex matches/does not match the contents of a variable.To clarify a bit,
ct_assert_equal/ct_assert_not_equalwill not work with a regex, so we needed to either extendct_assert_equal/ct_assert_not_equalto support toggling how the comparison is done or create new functions that are hard-coded to the correct comparison. We opted for the latter since it changes a significant portion of thect_assert_equal/ct_assert_not_equalimplementation.TODOs