.into_bytes()])]),
Vec::new()
);
}
#[test]
fn ignore_key_path_spends_with_annex() {
assert_eq!(
parse(&[Witness::from_slice(&[
bitcoin::script::Builder::new()
.push_opcode(bitcoin::opcodes::OP_FALSE)
.push_opcode(bitcoin::opcodes::all::OP_IF)
.push_slice(b"ord")
.push_opcode(bitcoin::opcodes::all::OP_ENDIF)
.into_script()
.into_bytes(),
vec![0x50]
])]),
Vec::new()
);
}
#[test]
fn parse_from_tapscript() {
assert_eq!(
parse(&[Witness::from_slice(&[
bitcoin::script::Builder::new()
.push_opcode(bitcoin::opcodes::OP_FALSE)
.push_opcode(bitcoin::opcodes::all::OP_IF)
.push_slice(b"ord")
.push_opcode(bitcoin::opcodes::all::OP_ENDIF)
.into_script()
.into_bytes(),
Vec::new()
])]),
vec![ParsedEnvelope {
..Default::default()
}]
);
}
#[test]
fn ignore_unparsable_scripts() {