Skip to content

Add ElementsMatch, ElementsMatchBy #589

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

Merged
merged 3 commits into from
Apr 26, 2025
Merged

Conversation

senago
Copy link
Contributor

@senago senago commented Feb 7, 2025

Solves #586

Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.39%. Comparing base (70b763e) to head (d170f87).
Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #589      +/-   ##
==========================================
+ Coverage   94.27%   94.39%   +0.11%     
==========================================
  Files          18       18              
  Lines        3178     3246      +68     
==========================================
+ Hits         2996     3064      +68     
  Misses        170      170              
  Partials       12       12              
Flag Coverage Δ
unittests 94.39% <100.00%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@senago
Copy link
Contributor Author

senago commented Feb 7, 2025

I'm actually not sure If we should count the elements. So is done in testify package: ElementsMatch. That's the intent - to have the same familiar semantics. Though personally I don't find this counting really helpful.

@samber samber merged commit 4a43ff6 into samber:master Apr 26, 2025
11 checks passed
oswaldom-code pushed a commit to oswaldom-code/lo that referenced this pull request Apr 28, 2025
* Add ElementsMatch, ElementsMatchBy

* Update intersect.go

* Update README.md

---------

Co-authored-by: Samuel Berthe <[email protected]>
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