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

Added ElementsAre and UnorderedElementsAre #2133

Closed
wants to merge 3 commits into from

Conversation

urielgarciarivas
Copy link
Contributor

Description

Added ElementsAre and UnorderedElementsAre generic range matchers which take a range during construction and their match method take a range as well.

GitHub Issues

Addressing issue #2087 .

Notes

I did not include support to providing a matcher as construction argument due to ElementsAre would be exactly the same as AllMatch.

@codecov
Copy link

codecov bot commented Jan 18, 2021

Codecov Report

Merging #2133 (4ac161f) into devel (ba81505) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            devel    #2133   +/-   ##
=======================================
  Coverage   90.03%   90.03%           
=======================================
  Files         146      146           
  Lines        7089     7089           
=======================================
  Hits         6382     6382           
  Misses        707      707           

@BenWhetton
Copy link

I was just wondering why this was closed? Do the maintainers not want this feature? I would love to see this in Catch!

@urielgarciarivas
Copy link
Contributor Author

I honestly closed this because I had no idea how to properly test it and I didn't want to bother Horen as in #2114.

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