producer_split_at.rs
Rust test marker or harness
SHA-25610fa5957b85e2483afa4f55b142d5ba99cb656cb1e6e5c9e1b3fb97f3d639216
MaleculeMd(Pa)
Evidence
1extern crate rayon;
2
3use rayon::prelude::*;
4use rayon::iter::plumbing::*;
5
6/// Stress-test indexes for `Producer::split_at`.
7fn check<F, I>(expected: &[I::Item], mut f: F)
8 where F: FnMut() -> I, …
68:7… println!("{:?}", self);
69
70 // Splitting the outer indexes first gets us an arbitrary mid section,
71 // which we then split further to …
⋯4 lines
100// **** Base Producers ****
101
102#[test]
103fn empty() {
104 let v = vec![42];
⋯7 lines