use super::*;
#[test]
fn test_error_from_conversion_error() {
let e: Error = ConversionError::OutOfBounds.into();
assert_eq!(e.variant, ErrorVariant::FailedCast);
}
#[cfg(feature = "polars")]
#[test]
fn test_error_from_polars_error() {
let e: Error = PolarsError::ColumnNotFound("A".into()).into();
assert_eq!(e.variant, ErrorVariant::FailedFunction);
assert_eq!(
e.message,
Some("ColumnNotFound(ErrString(\"A\"))".to_string())
);
}