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

Bug: .rev() drops elements #116

Closed
jlricon opened this issue Dec 27, 2019 · 1 comment
Closed

Bug: .rev() drops elements #116

jlricon opened this issue Dec 27, 2019 · 1 comment

Comments

@jlricon
Copy link

jlricon commented Dec 27, 2019

Merry Christmas, here's a fun bug report:
Let's say we have this:

fn deal_into_new(it: Vector<u32>) -> Vector<u32> {
    it.into_iter().rev().collect()
}
let testv = vec![0; 300].into_iter().collect::<Vector<u32>>();
let ret = deal_into_new(testv.clone());
assert_eq!(ret.len(), testv.len());

This fails with ret.len() being 237.
Oddly, this bug doesn't arise for n<300.

@bodil bodil closed this as completed in 74253ed Jan 17, 2020
@jlricon
Copy link
Author

jlricon commented Jan 17, 2020

Thanks @bodil , really like the library!

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

No branches or pull requests

1 participant