// SPDX-License-Identifier: MIT OR Apache-2.0
use gpu_handle_types::{Error, ErrorKind};
#[test]
fn kind_mapping() {
// A deliberate cancellation is its own class — not a retryable failure.
assert_eq!(Error::Cancelled.kind(), ErrorKind::Cancelled);
assert_eq!(Error::Timeout.kind(), ErrorKind::Recoverable);
assert_eq!(Error::NotSupported("x".into()).kind(), ErrorKind::Configuration);
assert_eq!(Error::Fatal("x").kind(), ErrorKind::Fatal);
}