From 7e4c78f4fcf444fb3788a4cf816b24535beafcd0 Mon Sep 17 00:00:00 2001 From: Beinsezii Date: Fri, 28 Jun 2024 01:24:47 -0700 Subject: [PATCH] Hacky UT fix Just re-create the FP rounding loss Should really test with an epsilon... --- src/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests.rs b/src/tests.rs index 5750c75..58e1368 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -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] ] ))