diff --git a/bitcoin/src/blockdata/witness.rs b/bitcoin/src/blockdata/witness.rs index 3d10a0a0..43e69d69 100644 --- a/bitcoin/src/blockdata/witness.rs +++ b/bitcoin/src/blockdata/witness.rs @@ -535,6 +535,16 @@ mod test { v } + #[test] + fn witness_debug_can_display_empty_instruction() { + let witness = Witness { + witness_elements: 1, + content: append_u32_vec(vec![], &[0]), + indices_start: 2, + }; + println!("{:?}", witness); + } + #[test] fn test_push() { let mut witness = Witness::default();