rust-itertools / itertools

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

More specialization tests #799

Closed Philippe-Cholet closed 11 months ago

Philippe-Cholet commented 11 months ago

Now about mostly done... Not all of our iterators are tested here:

Finally a bug... multi_cartesian_product is not tested here because specializations of last and count FAIL sometimes, and I don't want this pull request to be blocked by it! It requires further investigation and will have a dedicated pull request. EDIT: Apparently, the iterator is not fused even when all child iterators are, and this was the intended behavior, that's confusing.

Later EDITs: While making a bunch of specialization benchmarks, I noticed that I forgot some and some here: