unpwrap iterators in tests
This commit is contained in:
parent
dba66788bd
commit
cb26d5503e
2 changed files with 4 additions and 4 deletions
|
@ -15,13 +15,13 @@ use std::panic;
|
|||
fn main() {
|
||||
let r = panic::catch_unwind(|| {
|
||||
let mut it = u8::max_value()..;
|
||||
it.next();
|
||||
it.next().unwrap();
|
||||
});
|
||||
assert!(r.is_err());
|
||||
|
||||
let r = panic::catch_unwind(|| {
|
||||
let mut it = i8::max_value()..;
|
||||
it.next();
|
||||
it.next().unwrap();
|
||||
});
|
||||
assert!(r.is_err());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue