Test for Error::kind()

This commit is contained in:
Kogia-sima 2020-06-11 19:22:19 +09:00
parent 0612a28c50
commit dc4d062b8d
1 changed files with 1 additions and 0 deletions

View File

@ -249,6 +249,7 @@ mod tests {
offset = 16usize
);
err.chains.push(ErrorKind::Other("some error".to_owned()));
assert!(matches!(err.kind(), &ErrorKind::Other(_)));
assert_eq!(
err.to_string(),
r#"some error