mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-25 03:53:53 +01:00
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:
1 parent
68b464011f
commit
472560b309
1 file changed
+4
@@ -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));
|
||||
}
|
||||
Reference in new issue
Block a user