From cef78d81af3aa5239e493c301b65c79c6718ab2c Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Fri, 24 Aug 2018 00:50:24 +0000 Subject: [PATCH] fuzz: check that script deserialization roundtrips --- fuzz/fuzz_targets/deserialize_script.rs | 1 + 1 file changed, 1 insertion(+) 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()[..]); } }