Skip to content

Commit 9ea094c

Browse files
committed
Merge #467: fuzz: fix compile_descriptor to sort lifted policies before comparing
67ac55c fuzz: fix `compile_descriptor` to sort lifted policies before comparing (Andrew Poelstra) Pull request description: Fixes #466 ACKs for top commit: sanket1729: utACK 67ac55c Tree-SHA512: 4386d1c3ab131ac4a12475a2339160176204fc910517e067c1cdda9eded8394d0ffb5ff87fd21a5081a8a4a730a51881244548efa04cacfa7023300c27d661b0
2 parents 51d66d1 + 67ac55c commit 9ea094c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/fuzz_targets/compile_descriptor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn do_test(data: &[u8]) {
1515
// Compile
1616
if let Ok(desc) = pol.compile::<Segwitv0>() {
1717
// Lift
18-
assert_eq!(desc.clone().lift().unwrap(), pol.clone().lift().unwrap());
18+
assert_eq!(desc.clone().lift().unwrap().sorted(), pol.clone().lift().unwrap().sorted());
1919
// Try to roundtrip the output of the compiler
2020
let output = desc.to_string();
2121
if let Ok(desc) = DummyScript::from_str(&output) {

0 commit comments

Comments
 (0)