use thiserror::Error;
#[derive(Debug, Clone, PartialEq, Error)]
pub enum BondError {
#[error("unknown bond: '{0}'")]
UnknownBond(char),
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn error_messages_are_descriptive() {
assert_eq!(BondError::UnknownBond('X').to_string(), "unknown bond: 'X'");
}
}