From 27974fac0ff16cc5f2c4a338a3af711ccf9f83f3 Mon Sep 17 00:00:00 2001 From: Gert Pellin Date: Fri, 16 Oct 2026 04:46:51 +0200 Subject: [PATCH] Tone: test the edited-curve shoulder at white, not past its end (#1945) --- crates/pipeline/src/tone.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/pipeline/src/tone.rs b/crates/pipeline/src/tone.rs index 120698501..a248ada59 100644 --- a/crates/pipeline/src/tone.rs +++ b/crates/pipeline/src/tone.rs @@ -440,8 +440,8 @@ mod tests { // only neutral settings are the identity. for (c, w, b) in [(20.0, 0.0, 0.0), (0.0, 10.0, 0.0), (0.0, 0.0, -5.0)] { let t = ToneMap::display(c, w, b); - let o = t.apply(1.2); - assert!(o < 1.0 && o > 0.95, "{c} {w} {b}: {o}"); + let o = t.apply(1.0); + assert!(o < 0.999 && o > 0.95, "{c} {w} {b}: {o}"); } }