Skip to content

Commit

Permalink
fuzz: fix compile_descriptor to sort lifted policies before comparing
Browse files Browse the repository at this point in the history
Fixes #466
  • Loading branch information
apoelstra committed Sep 29, 2022
1 parent 51d66d1 commit 67ac55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/compile_descriptor.rs
Expand Up @@ -15,7 +15,7 @@ fn do_test(data: &[u8]) {
// Compile
if let Ok(desc) = pol.compile::<Segwitv0>() {
// Lift
assert_eq!(desc.clone().lift().unwrap(), pol.clone().lift().unwrap());
assert_eq!(desc.clone().lift().unwrap().sorted(), pol.clone().lift().unwrap().sorted());
// Try to roundtrip the output of the compiler
let output = desc.to_string();
if let Ok(desc) = DummyScript::from_str(&output) {
Expand Down

0 comments on commit 67ac55c

Please sign in to comment.