From 3a8522d0062a1bfbe49621c76a62b130cb05366a Mon Sep 17 00:00:00 2001 From: Beinsezii Date: Thu, 28 Dec 2023 16:47:42 -0800 Subject: [PATCH] Skip test 1 on LCH -> HSV The hue wraps from 0.0000 to 0.9999 making it worthless --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c5cb61b..e7d67ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1194,8 +1194,10 @@ mod tests { println!("OKLCH -> LCH"); conv_cmp(Space::OKLCH, OKLCH, Space::LCH, LCH); + // add 1 to skip because the hue wraps from 0.0000 to 0.9999 + // fuck you precision println!("LCH -> HSV"); - conv_cmp(Space::LCH, LCH, Space::HSV, HSV); + conv_cmp_full(Space::LCH, LCH, Space::HSV, HSV, 1e-1, &[0, 1, 7, 8, 9]); } #[test]