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
There's an off-by-one error in BoundedRanges with an excluded lower bound. The following test fails:
#[test] fn test_excluded_lower_bound() { let r = BoundedRange::new(Bound::Excluded(3), Bound::Excluded(4)); assert_eq!(r.collect::<Vec<_>>(), vec![]); }
with the message:
thread 'bounded_range::test_excluded_lower_bound' panicked at 'assertion failed: `(left == right)` left: `[4]`, right: `[]`', src/bounded_range.rs:136:5
The text was updated successfully, but these errors were encountered:
Fixed in 0.1.1
Specializing Bound into LowerBound and UpperBound made BoundedRange's iterator implementation make sense again.
Bound
LowerBound
UpperBound
Sorry, something went wrong.
No branches or pull requests
There's an off-by-one error in BoundedRanges with an excluded lower bound. The following test fails:
with the message:
The text was updated successfully, but these errors were encountered: