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

Fix bug in Subset argument check #573

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Fix bug in Subset argument check #573

merged 1 commit into from
Nov 21, 2023

Conversation

viceroypenguin
Copy link
Owner

This PR fixes a bug in the Subset argument validation for collections. subsetSize should be allowed if equal to sequence.Count but was failing validation.

Fixes #570

@viceroypenguin viceroypenguin added this to the 5.4.0 milestone Nov 21, 2023
Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cdc0e7e) 93.01% compared to head (a0f8cb8) 93.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #573      +/-   ##
==========================================
- Coverage   93.01%   93.00%   -0.02%     
==========================================
  Files         255      255              
  Lines        8133     8133              
  Branches     1619     1619              
==========================================
- Hits         7565     7564       -1     
- Misses        358      359       +1     
  Partials      210      210              

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

@viceroypenguin viceroypenguin merged commit 84f9742 into master Nov 21, 2023
@viceroypenguin viceroypenguin deleted the subsets branch November 21, 2023 04:28
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.

Subsets fails when subsetSize == source.Count()
1 participant