Tests: clipping warnings crush the shadows with Blacks (#3839)

Main fails this test: Exposure -5 alone no longer leaves a channel at 0 in the
demo photo.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
FredAppsandClaude Opus 5.5 authored and GitHub committed 2026-11-06 02:36:08 +01:00
1 parent 68b464011f
commit 472560b309
1 file changed
+4
+4
View File
@@ -97,6 +97,10 @@ fn j_paints_clipped_highlights_red_and_clipped_shadows_blue() {
assert!(h.app.ui.show_clipping);
assert!(share_of(&h, red) > 0.5, "blown highlights shown in red: {}", share_of(&h, red));
set(&mut h, -5.0);
// the demo photo's shadows don't reach black on Exposure alone: Blacks crushes them
let r = h.request("engine.execute", json!({"command": "develop.set", "params": {"control": "light.blacks", "value": -100.0}}), T);
assert_eq!(r["ok"], true, "{r}");
h.settle(SETTLE);
assert!(share_of(&h, blue) > 0.01, "crushed shadows shown in blue: {}", share_of(&h, blue));
assert!(share_of(&h, red) < 0.01, "nothing blown at -5 EV: {}", share_of(&h, red));
}