[317] Kern-Test: Treppe in der Ansicht über stair_id
check / check (push) Has been cancelled
check / licenses (push) Has been cancelled
check / e2e (push) Has been cancelled
macos / native (push) Has been cancelled

This commit is contained in:
Claude committed 2026-11-20 15:18:49 +00:00
1 parent c946e2271d
commit cd77cd06fe
1 file changed
+2 -1
@@ -157,7 +157,8 @@ fn ansicht_oeffnungen_treppen_raster() {
let p = project();
let all = all_codes(&p);
let opening = |v: &[Primitive]| v.iter().any(|q| matches!(q, Primitive::Polygon { opening_id: Some(_), .. }));
let stair = |v: &[Primitive]| v.iter().any(|q| matches!(q, Primitive::Polygon { ceiling_id: Some(id), .. } if id == "ST1"));
// [317] Treppen tragen in der Ansicht ihre eigene Pick-Id (`stair_id`), nicht mehr `ceiling_id`.
let stair = |v: &[Primitive]| v.iter().any(|q| matches!(q, Primitive::Polygon { stair_id: Some(id), .. } if id == "ST1"));
let grid = |v: &[Primitive]| v.iter().any(|q| matches!(q, Primitive::DrawingCircle { drawing_id: Some(id), .. } if id == "raster"));
let a = elevation(&p, &all);
assert!(opening(&a) && stair(&a) && grid(&a));