diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rayon/tests/drain_vec.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/rayon/tests/drain_vec.rs')
-rw-r--r-- | vendor/rayon/tests/drain_vec.rs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vendor/rayon/tests/drain_vec.rs b/vendor/rayon/tests/drain_vec.rs deleted file mode 100644 index 08f1120..0000000 --- a/vendor/rayon/tests/drain_vec.rs +++ /dev/null @@ -1,41 +0,0 @@ -use rayon::prelude::*; - -#[test] -fn drain_vec_yielded() { - let mut vec_org = vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; - - let yielded = vec_org.par_drain(0..5).collect::<Vec<_>>(); - - assert_eq!(&yielded, &[0, 1, 2, 3, 4]); - assert_eq!(&vec_org, &[5, 6, 7, 8, 9]); -} - -#[test] -fn drain_vec_dropped() { - let mut vec_org = vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; - - let yielded = vec_org.par_drain(0..5); - - drop(yielded); - assert_eq!(&vec_org, &[5, 6, 7, 8, 9]); -} - -#[test] -fn drain_vec_empty_range_yielded() { - let mut vec_org = vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; - - let yielded = vec_org.par_drain(5..5).collect::<Vec<_>>(); - - assert_eq!(&yielded, &[]); - assert_eq!(&vec_org, &[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); -} - -#[test] -fn drain_vec_empty_range_dropped() { - let mut vec_org = vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; - - let yielded = vec_org.par_drain(5..5); - - drop(yielded); - assert_eq!(&vec_org, &[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); -} |