rust-itertools / itertools

Extra iterator adaptors, iterator methods, free functions, and macros.
https://docs.rs/itertools/
Apache License 2.0
2.64k stars 299 forks source link

Case 0 and 1 of `k_smallest` and variants #909

Closed Philippe-Cholet closed 3 months ago

Philippe-Cholet commented 4 months ago

Fixes #904. About the case k=0, I wonder if all our iterators behave well on iterators with side-effects. I think we should update the specialization tests.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.29%. Comparing base (6814180) to head (80c2b30). Report is 42 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #909 +/- ## ========================================== - Coverage 94.38% 94.29% -0.10% ========================================== Files 48 48 Lines 6665 6815 +150 ========================================== + Hits 6291 6426 +135 - Misses 374 389 +15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.