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`.
This commit is contained in:
Tobin C. Harding 2024-09-25 10:46:34 +10:00
parent f6a74ef4af
commit 5fab6b178f
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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);