PhotoCraft: An open-source, photo editor written by scratch in pure Rust
test(histogram): build the parallel-path test only off wasm32 (CodeRabbit)
Nicolas Falesy9451ed755740
diff --git a/crates/algo/src/histogram.rs b/crates/algo/src/histogram.rsindex 2d3df42dc..849b222c2 100644--- a/crates/algo/src/histogram.rs+++ b/crates/algo/src/histogram.rs@@ -127,6 +127,8 @@ pub fn clipping(p: [f32; 4]) -> (u8, u8) {mod tests {use super::*;+ // The parallel path, and its threshold, exist only off wasm32.+ #[cfg(not(target_arch = "wasm32"))]#[test]fn matches_the_single_pass_on_every_domain_and_across_block_edges() {// Every special value at every channel, plus a dense ramp through each bin's rounding