use csp_solver::CspError;
#[test]
fn code_unsatisfiable() {
assert_eq!(CspError::Unsatisfiable.code(), "UNSATISFIABLE");
}
#[test]
fn code_budget_exceeded() {
assert_eq!(CspError::BudgetExceeded.code(), "BUDGET_EXCEEDED");
}
#[test]
fn code_invalid_input() {
assert_eq!(CspError::invalid_input("x").code(), "INVALID_INPUT");
}
#[test]
fn code_timeout() {
assert_eq!(CspError::Timeout.code(), "TIMEOUT");
}
#[test]
fn unsatisfiable_marker_converts() {
let e: CspError = csp_solver::Unsatisfiable.into();
assert_eq!(e, CspError::Unsatisfiable);
}