chessfriend/moves/src/testing.rs

18 lines
345 B
Rust
Raw Normal View History

// Eryn Wells <eryn@erynwells.me>
use crate::BuildMoveError;
pub type TestResult = Result<(), TestError>;
#[derive(Debug, Eq, PartialEq)]
pub enum TestError {
BuildMove(BuildMoveError),
NoLegalMoves,
}
impl From<BuildMoveError> for TestError {
fn from(value: BuildMoveError) -> Self {
TestError::BuildMove(value)
}
}