Skip to content

Commit

Permalink
Skip test 1 on LCH -> HSV
Browse files Browse the repository at this point in the history
The hue wraps from 0.0000 to 0.9999 making it worthless
  • Loading branch information
Beinsezii committed Dec 29, 2023
1 parent 8585129 commit 3a8522d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3a8522d

Please sign in to comment.