[core] Fix an incorrect assertion in the Score doc test

Negate with - instead of with !.
This commit is contained in:
Eryn Wells 2025-07-12 17:12:34 -07:00
parent b505606925
commit 146e4d34d3

View file

@ -23,7 +23,7 @@ impl Score {
/// ///
/// ``` /// ```
/// use chessfriend_core::score::Score; /// use chessfriend_core::score::Score;
/// assert_eq!(!Score::MIN, Score::MAX); /// assert_eq!(-Score::MIN, Score::MAX);
/// ``` /// ```
/// ///
pub const MIN: Score = Score(Value::MIN + 1); pub const MIN: Score = Score(Value::MIN + 1);