Fixing minor bug in assert statement

This commit is contained in:
mehdi 2019-02-20 15:30:58 +11:00
parent 38abcc4a24
commit 532a854f8e
No known key found for this signature in database
GPG Key ID: D99440488DAE825D

View File

@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
// Should have valid result
let (number_u8, index) = result.unwrap();
assert_eq!(number_u8, data[0]);
assert_eq!(index, 2);
assert_eq!(index, 1);
} else {
// Length of 0 should return error
assert_eq!(result, Err(DecodeError::TooShort));