test: rustfmt the lookup tests

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
osobh
2026-09-26 13:36:02 -05:00
co-authored by Claude Opus 5.5
parent 1b4a93f65a
commit 85efde0b4a
2 changed files with 12 additions and 3 deletions
@@ -230,8 +230,14 @@ fn many_huge_attributes_are_found_through_their_index() {
for i in 0..300i64 {
let name = format!("h{i:03}");
let want: Vec<i64> = (0..600).map(|v| v + i).collect();
assert!(matches!(&attrs[&name], AttrValue::I64Array(v) if *v == want), "{name}");
assert!(matches!(d.attr(&name).unwrap(), Some(AttrValue::I64Array(v)) if v == want), "{name}");
assert!(
matches!(&attrs[&name], AttrValue::I64Array(v) if *v == want),
"{name}"
);
assert!(
matches!(d.attr(&name).unwrap(), Some(AttrValue::I64Array(v)) if v == want),
"{name}"
);
}
}
@@ -376,7 +376,10 @@ fn links_of_every_kind_resolve_by_name_as_in_h5py() {
"group".to_string()
}
(Err(e), Err(e2)) => {
assert!(is_not_found(&e) && is_not_found(&e2), "{key}: {e:?} / {e2:?}");
assert!(
is_not_found(&e) && is_not_found(&e2),
"{key}: {e:?} / {e2:?}"
);
"none".to_string()
}
(Err(e), Ok(_)) => panic!("{key}: dataset {e:?} but group ok"),