mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-16 21:20:00 +00:00
panic test added test_blob_from_fit_vec_panic
This commit is contained in:
parent
adcd3e1b17
commit
ef904df52d
@ -231,4 +231,11 @@ mod tests {
|
|||||||
assert_eq!(blob_from_vec.0[3..], [0u8; PRIVATE_BLOB_SIZE - 3]);
|
assert_eq!(blob_from_vec.0[3..], [0u8; PRIVATE_BLOB_SIZE - 3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[should_panic]
|
||||||
|
fn test_blob_from_fit_vec_panic() {
|
||||||
|
let data = vec![1u8; PRIVATE_BLOB_SIZE + 1];
|
||||||
|
let _ = produce_blob_from_fit_vec(data);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user