Skip to content

Commit 7e4c78f

Browse files
committed
Hacky UT fix
Just re-create the FP rounding loss Should really test with an epsilon...
1 parent e2af248 commit 7e4c78f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ fn str2col_perc_mix() {
658658
Space::OKLAB,
659659
[
660660
0.5f32,
661-
Space::OKLAB.srgb_quants()[100][1],
661+
Space::OKLAB.srgb_quants()[100][1] - Space::OKLAB.srgb_quants()[0][1]
662+
+ Space::OKLAB.srgb_quants()[0][1],
662663
Space::OKLAB.srgb_quants()[0][2]
663664
]
664665
))

0 commit comments

Comments
 (0)