Skip to content

Commit

Permalink
Hacky UT fix
Browse files Browse the repository at this point in the history
Just re-create the FP rounding loss

Should really test with an epsilon...
  • Loading branch information
Beinsezii committed Jun 28, 2024
1 parent e2af248 commit 7e4c78f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ fn str2col_perc_mix() {
Space::OKLAB,
[
0.5f32,
Space::OKLAB.srgb_quants()[100][1],
Space::OKLAB.srgb_quants()[100][1] - Space::OKLAB.srgb_quants()[0][1]
+ Space::OKLAB.srgb_quants()[0][1],
Space::OKLAB.srgb_quants()[0][2]
]
))
Expand Down

0 comments on commit 7e4c78f

Please sign in to comment.