diff --git a/fuzz/fuzz_targets/deserialize_script.rs b/fuzz/fuzz_targets/deserialize_script.rs index fcf23d6d..0d10d1a2 100644 --- a/fuzz/fuzz_targets/deserialize_script.rs +++ b/fuzz/fuzz_targets/deserialize_script.rs @@ -31,6 +31,7 @@ fn do_test(data: &[u8]) { } } assert_eq!(b.into_script(), script); + assert_eq!(data, &serialize::serialize(&script).unwrap()[..]); } }