mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update library/coretests/tests/ops.rs
Co-authored-by: Jubilee <workingjubilee@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5f2b04652f
commit
789c8408ec
@@ -89,7 +89,8 @@ fn test_range_to_contains() {
|
||||
assert!(!(1u32..=5).contains(&6));
|
||||
}
|
||||
|
||||
// This test covers `RangeBounds::contains` when the start is excluded.
|
||||
// This test covers `RangeBounds::contains` when the start is excluded,
|
||||
// which cannot be directly expressed by Rust's built-in range syntax.
|
||||
#[test]
|
||||
fn test_range_bounds_contains() {
|
||||
let r = (Bound::Excluded(1u32), Bound::Included(5u32));
|
||||
|
||||
Reference in New Issue
Block a user