Update core/src/header.rs
Code updated with the requested changes
@@ -1150,10 +1150,10 @@ mod tests {
let p = dicom_value!(U16, [256, 0, 16]);
let val = DicomValue::new(p);
let element = DataElement::new(Tag(0x0028, 0x3002), VR::US, val);
- match element.to_clean_str() {
- Ok(value) => assert_eq!(value, "256\\0\\16"),
- Err(_) => {}
- }
+ assert_eq!(
+ element.to_clean_str().unwrap(),
+ "256\\0\\16",
+ );
}
#[test]
