We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the following test, the 2 asserts where there's a bitvec on the left and a slice on the right will fail.
#[test] fn test_bitvec_order() { let k = bitvec![0, 1, 0, 1]; let r = bitvec![1, 0, 0, 0]; let k_slice = &k[..]; let r_slice = &r[..]; assert!(r > k); assert!(k < r); assert!(r_slice > k_slice); assert!(k_slice < r_slice); assert!(r_slice > k); assert!(k < r_slice); assert!(k_slice < r); assert!(r > k_slice); }
I believe this is due to the PartialOrd implementation at https://github.com/ferrilab/bitvec/blob/main/src/vec/traits.rs#L201 which swaps the order of self & other around.
The text was updated successfully, but these errors were encountered:
f3d5b43
Merge pull request #216 from superfell/vec_order
0e8cdf6
Fix BitVec to BitSlice partial_cmp. Fixes #215
No branches or pull requests
In the following test, the 2 asserts where there's a bitvec on the left and a slice on the right will fail.
I believe this is due to the PartialOrd implementation at https://github.com/ferrilab/bitvec/blob/main/src/vec/traits.rs#L201 which swaps the order of self & other around.
The text was updated successfully, but these errors were encountered: