use super::error::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[cfg(test)]
mod tests {
use std::error::Error as _;
use super::super::error;
use super::Result;
#[test]
fn result() {
let result: Result<&str> = Ok("test");
assert_eq!(result.unwrap(), "test");
let result: Result<&str> = Err(error::Error::from(error::ErrorKind::Other));
assert_eq!(result.unwrap_err().description(), "other");
let result: Result<&str> = Err(error::Error::new(
error::ErrorKind::Other, "test other"
));
assert_eq!(result.unwrap_err().description(), "test other");
}
}