Update library/coretests/tests/ops.rs

Co-authored-by: Jubilee <workingjubilee@gmail.com>
This commit is contained in:
Christian Poveda Ruiz
2025-09-10 16:50:45 -05:00
committed by GitHub
parent 5f2b04652f
commit 789c8408ec
+2 -1
View File
@@ -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));