Merge branch 'silent-overflow' of github.com:matthew-piziak/rust into silent-overflow
This commit is contained in:
commit
a802ec1f65
1 changed files with 0 additions and 14 deletions
|
|
@ -915,20 +915,6 @@ fn test_range_step() {
|
|||
assert_eq!((isize::MIN..isize::MAX).step_by(1).size_hint(), (usize::MAX, Some(usize::MAX)));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_range_overflow_unsigned() {
|
||||
let mut it = u8::MAX..;
|
||||
it.next();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_range_overflow_signed() {
|
||||
let mut it = i8::MAX..;
|
||||
it.next();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_repeat() {
|
||||
let mut it = repeat(42);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue