From 94880cd1b6166054634d8d1acd1a163b1ee112f4 Mon Sep 17 00:00:00 2001 From: Beinsezii Date: Thu, 28 Dec 2023 18:19:06 -0800 Subject: [PATCH] Increase default conv_cmp test precision --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c9fc5df..c38c330 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1101,7 +1101,7 @@ mod tests { reference_space: Space, reference: &[[f32; 3]], ) { - conv_cmp_full(input_space, input, reference_space, reference, 1e-1, &[0, 7]) + conv_cmp_full(input_space, input, reference_space, reference, 1e-2, &[0, 7]) } #[test] @@ -1188,7 +1188,7 @@ mod tests { conv_cmp_full(Space::HSV, HSV, Space::JZCZHZ, JZCZHZ, 2e-1, &[0, 7]); println!("JZCZHZ -> OKLCH"); - conv_cmp(Space::JZCZHZ, JZCZHZ, Space::OKLCH, OKLCH); + conv_cmp_full(Space::JZCZHZ, JZCZHZ, Space::OKLCH, OKLCH, 1e-1, &[0, 7]); println!("OKLCH -> LCH"); conv_cmp(Space::OKLCH, OKLCH, Space::LCH, LCH);