Skip to content

Commit

Permalink
Unskip large value tests in tree_jump
Browse files Browse the repository at this point in the history
Now just skip tests with hue wrapping.
  • Loading branch information
Beinsezii committed Dec 29, 2023
1 parent cbddbcb commit f5e837e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, 8, 9])
conv_cmp_full(input_space, input, reference_space, reference, 1e-1, &[0, 7])
}

#[test]
Expand Down Expand Up @@ -1178,14 +1178,14 @@ mod tests {
conv_cmp(Space::LCH, LCH, Space::OKLCH, OKLCH);

println!("OKLCH -> JZCZHZ");
conv_cmp(Space::OKLCH, OKLCH, Space::JZCZHZ, JZCZHZ);
conv_cmp_full(Space::OKLCH, OKLCH, Space::JZCZHZ, JZCZHZ, 2e-1, &[0, 7]);

println!("JZCZHZ -> HSV");
conv_cmp(Space::JZCZHZ, JZCZHZ, Space::HSV, HSV);

// backwards
println!("HSV -> JZCZHZ");
conv_cmp(Space::HSV, HSV, Space::JZCZHZ, JZCZHZ);
conv_cmp_full(Space::HSV, HSV, Space::JZCZHZ, JZCZHZ, 2e-1, &[0, 7]);

println!("JZCZHZ -> OKLCH");
conv_cmp(Space::JZCZHZ, JZCZHZ, Space::OKLCH, OKLCH);
Expand All @@ -1196,7 +1196,7 @@ mod tests {
// add 1 to skip because the hue wraps from 0.0000 to 0.9999
// fuck you precision
println!("LCH -> HSV");
conv_cmp_full(Space::LCH, LCH, Space::HSV, HSV, 1e-1, &[0, 1, 7, 8, 9]);
conv_cmp_full(Space::LCH, LCH, Space::HSV, HSV, 1e-1, &[0, 1, 7]);
}

#[test]
Expand Down

0 comments on commit f5e837e

Please sign in to comment.