-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 matcher: Equals(std::vector) #466
Conversation
311c89d
to
6d98529
Compare
c996fe8
to
e937427
Compare
e937427
to
8078fc1
Compare
Apologies for the premature closure - I deleted the branch and it auto-closed all associated PRs - it wasn't intentional. |
Hi @philsquared, could you please have a look at this again? This Equals matcher for std::vector was a non-trivial piece of work it would be unfortunate if it get's lost now. I don't know what your plans for matchers are and if you like this implementation but I you want matchers, I think this is a real basic one and a great example for a matcher that can handle template types. |
I'll definitely be looking at it. It's exactly the sort of thing I've been meaning to get around to adding for a while - so the work is very much appreciated. |
Great, no need to hurry. I was just afraid it was overlooked. |
Sorry I never got back to this. I must have forgotten to make a note of it and- since it's closed with no way to reopen - it didn't even come up in review. Anyway, if this is still an area of interest for you you might like to know that I've been reworking the Matchers implementation. It's now much simpler - with far less templates in particular (and no CRTP!). That's the good news. The (slightly) bad news is that it will break existing custom Matchers (although its not a big job to update them). Since you've been using them in the past I thought I'd give you a heads up before this gets merged to master. You can find them here: (or just the single include: Please let me know what your thoughts or - including if this is no longer relevant for you so I'll not wait for you. |
Thanks for the update. Even though I always loved Catch, I don't work on a project using it right now. Thus I cannot put any efford in rewriting this matcher. Please feel free to reuse whatever you find here if it helps. |
Thanks for getting back. No worries at all. My main concern was whether I'd be breaking you. |
This matcher supports arbitrary
std::vector
s including custom allocators. It is tested using Botan's secure_vector type.Note that this moves
catch_tostring.h
up in the single header, I hope this causes no trouble.