use csdif_core::error::CsdifError;
#[test]
fn test_display_validation_error() {
let err = CsdifError::Validation("Missing field".into());
assert_eq!(format!("{}", err), "Validation error: Missing field");
}
#[test]
fn test_display_transformation_error() {
let err = CsdifError::Transformation("Invalid input".into());
assert_eq!(format!("{}", err), "Transformation error: Invalid input");
}
#[test]
fn test_display_generic_error() {
let err = CsdifError::Other("Something went wrong".into());
assert_eq!(format!("{}", err), "Error: Something went wrong");
}