fixed nonzero tests
This commit is contained in:
parent
ce30d4e1b9
commit
912ad6831e
1 changed files with 3 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use core::num::{NonZeroU32, NonZeroI32};
|
||||
use core::option::Option;
|
||||
use core::option::Option::{Some, None};
|
||||
use core::num::{IntErrorKind, NonZeroU8, NonZeroU32, NonZeroI32, ParseIntError};
|
||||
use core::option::Option::{self, Some, None};
|
||||
use std::mem::size_of;
|
||||
|
||||
#[test]
|
||||
|
|
@ -143,7 +142,7 @@ fn test_from_str() {
|
|||
})
|
||||
);
|
||||
assert_eq!(
|
||||
"129".parse::<NonZeroU8>(),
|
||||
"257".parse::<NonZeroU8>(),
|
||||
Err(ParseIntError {
|
||||
kind: IntErrorKind::Overflow
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue