test: rustfmt the lookup tests
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
@@ -230,8 +230,14 @@ fn many_huge_attributes_are_found_through_their_index() {
|
|||||||
for i in 0..300i64 {
|
for i in 0..300i64 {
|
||||||
let name = format!("h{i:03}");
|
let name = format!("h{i:03}");
|
||||||
let want: Vec<i64> = (0..600).map(|v| v + i).collect();
|
let want: Vec<i64> = (0..600).map(|v| v + i).collect();
|
||||||
assert!(matches!(&attrs[&name], AttrValue::I64Array(v) if *v == want), "{name}");
|
assert!(
|
||||||
assert!(matches!(d.attr(&name).unwrap(), Some(AttrValue::I64Array(v)) if v == want), "{name}");
|
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()
|
"group".to_string()
|
||||||
}
|
}
|
||||||
(Err(e), Err(e2)) => {
|
(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()
|
"none".to_string()
|
||||||
}
|
}
|
||||||
(Err(e), Ok(_)) => panic!("{key}: dataset {e:?} but group ok"),
|
(Err(e), Ok(_)) => panic!("{key}: dataset {e:?} but group ok"),
|
||||||
|
|||||||
Reference in New Issue
Block a user