Skip to content

Commit 67ac55c

Browse files
committed
fuzz: fix compile_descriptor to sort lifted policies before comparing
Fixes #466
1 parent 51d66d1 commit 67ac55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/fuzz_targets/compile_descriptor.rs

Lines changed: 1 addition & 1 deletion
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)