[330] Tests nach Antrittspunkt: DXF schreibt ihn als CIRCLE, Pfeil-Test zählt nur Dreiecke, CLI-Golden nachgeführt
check / check (push) Canceled after 0s
check / licenses (push) Canceled after 0s
check / e2e (push) Canceled after 0s
macos / native (push) Canceled after 0s

This commit is contained in:
Claude committed 2026-11-24 15:20:48 +00:00
1 parent a0e4290175
commit e7073d06a6
4 files changed
+9 -4

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ describe("generatePlan — Treppen-Pfeil", () => {
expect(arrowLines.length).toBe(2);
// Keine gefüllte Pfeil-Fläche (Tritt-Polygone tragen fill:"none").
const filled = prims.filter(
(p) => p.kind === "polygon" && p.stairId === "st-1" && p.fill !== "none",
(p) => p.kind === "polygon" && p.stairId === "st-1" && p.fill !== "none" && p.pts.length === 3, // ohne Antrittspunkt ([330])
);
expect(filled.length).toBe(0);
});
@@ -76,7 +76,7 @@ describe("generatePlan — Treppen-Pfeil", () => {
.primitives;
expect(prims.some((p) => p.kind === "line" && p.cls === "stair-arrow")).toBe(false);
const filled = prims.filter(
(p) => p.kind === "polygon" && p.stairId === "st-1" && p.fill !== "none",
(p) => p.kind === "polygon" && p.stairId === "st-1" && p.fill !== "none" && p.pts.length === 3, // ohne Antrittspunkt ([330])
);
expect(filled.length).toBe(1);
expect(filled[0].kind === "polygon" && filled[0].pts.length).toBe(3);