From 5fab6b178f594db7f609d576b7cf906757c95dda Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 25 Sep 2024 10:46:34 +1000 Subject: [PATCH] Rename iter len unit test Rust convention is to not use `test_` prefix on unit tests. Also this unit test is testing that the `ExactSizedIterator` trait is implemented and working. Re-name unit test to `exact_sized_iterator`. --- bitcoin/src/blockdata/witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/witness.rs b/bitcoin/src/blockdata/witness.rs index 644ded5fb..a301d6487 100644 --- a/bitcoin/src/blockdata/witness.rs +++ b/bitcoin/src/blockdata/witness.rs @@ -757,7 +757,7 @@ mod test { } #[test] - fn test_iter_len() { + fn exact_sized_iterator() { let mut witness = Witness::default(); for i in 0..5 { assert_eq!(witness.iter().len(), i);