|
|
@ -766,16 +766,16 @@ mod test {
|
|
|
|
fn test_contains() {
|
|
|
|
fn test_contains() {
|
|
|
|
let range = Range::new(10, 12);
|
|
|
|
let range = Range::new(10, 12);
|
|
|
|
|
|
|
|
|
|
|
|
assert_eq!(range.contains(9), false);
|
|
|
|
assert!(!range.contains(9));
|
|
|
|
assert_eq!(range.contains(10), true);
|
|
|
|
assert!(range.contains(10));
|
|
|
|
assert_eq!(range.contains(11), true);
|
|
|
|
assert!(range.contains(11));
|
|
|
|
assert_eq!(range.contains(12), false);
|
|
|
|
assert!(!range.contains(12));
|
|
|
|
assert_eq!(range.contains(13), false);
|
|
|
|
assert!(!range.contains(13));
|
|
|
|
|
|
|
|
|
|
|
|
let range = Range::new(9, 6);
|
|
|
|
let range = Range::new(9, 6);
|
|
|
|
assert_eq!(range.contains(9), false);
|
|
|
|
assert!(!range.contains(9));
|
|
|
|
assert_eq!(range.contains(7), true);
|
|
|
|
assert!(range.contains(7));
|
|
|
|
assert_eq!(range.contains(6), true);
|
|
|
|
assert!(range.contains(6));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
#[test]
|
|
|
|