Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Grubenmann committed Nov 7, 2023
1 parent fe276df commit fbf2b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ mod tests {
);
assert_eq!(
<(u8, u8, u8)>::from(gradient.color_for_index(128, 255)),
(128, 128, 128)
(188, 188, 188)
);
assert_eq!(
<(u8, u8, u8)>::from(gradient.color_for_index(255, 255)),
Expand All @@ -175,11 +175,11 @@ mod tests {
);
assert_eq!(
<(u8, u8, u8)>::from(gradient.color_for_index(4, 4)),
(4, 96, 204)
(5, 94, 205)
);
assert_eq!(
<(u8, u8, u8)>::from(gradient.color_for_index(2, 4)),
(2, 98, 202)
(2, 97, 202)
);
}
}

0 comments on commit fbf2b53

Please sign in to comment.