Fixing minor bug in assert statement
This commit is contained in:
parent
38abcc4a24
commit
532a854f8e
@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
|
|||||||
// Should have valid result
|
// Should have valid result
|
||||||
let (number_u8, index) = result.unwrap();
|
let (number_u8, index) = result.unwrap();
|
||||||
assert_eq!(number_u8, data[0]);
|
assert_eq!(number_u8, data[0]);
|
||||||
assert_eq!(index, 2);
|
assert_eq!(index, 1);
|
||||||
} else {
|
} else {
|
||||||
// Length of 0 should return error
|
// Length of 0 should return error
|
||||||
assert_eq!(result, Err(DecodeError::TooShort));
|
assert_eq!(result, Err(DecodeError::TooShort));
|
||||||
|
Loading…
Reference in New Issue
Block a user