diff --git a/bitcoin/src/merkle_tree/block.rs b/bitcoin/src/merkle_tree/block.rs index e5133fa8..c786e6c3 100644 --- a/bitcoin/src/merkle_tree/block.rs +++ b/bitcoin/src/merkle_tree/block.rs @@ -515,15 +515,16 @@ mod tests { #[cfg(feature = "rand-std")] macro_rules! pmt_tests { - ($($name:ident),* $(,)?) => { - $( - #[test] - fn $name() { - pmt_test_from_name(stringify!($name)); + ($($name:ident),* $(,)?) => { + $( + #[test] + fn $name() { + pmt_test_from_name(stringify!($name)); + } + )* } - )* } -} + #[cfg(feature = "rand-std")] pmt_tests!( pmt_test_1,