Skip to content

Commit

Permalink
Fix typo in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Mar 12, 2024
1 parent 7cc0e7e commit dc05ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ mod tests {

#[test]
fn white_has_perceived_lightness_100() {
let black = Color {
let white = Color {
r: u16::MAX,
g: u16::MAX,
b: u16::MAX,
};
assert_eq!(100, black.perceived_lightness())
assert_eq!(100, white.perceived_lightness())
}
}

0 comments on commit dc05ff6

Please sign in to comment.