mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 04:12:56 -04:00
11 lines
303 B
Rust
11 lines
303 B
Rust
use bitdo_proto::{BitdoError, BitdoErrorCode};
|
|
|
|
#[test]
|
|
fn bitdo_error_maps_to_stable_codes() {
|
|
let err = BitdoError::InvalidInput("bad".to_owned());
|
|
assert_eq!(err.code(), BitdoErrorCode::InvalidInput);
|
|
|
|
let err = BitdoError::Timeout;
|
|
assert_eq!(err.code(), BitdoErrorCode::Timeout);
|
|
}
|