better patterns
All checks were successful
Deploy to Pages / build (push) Successful in 26s

This commit is contained in:
Andras Schmelczer 2026-09-11 22:46:23 +01:00
commit 171fbf1927
9 changed files with 2589 additions and 37 deletions

View file

@ -324,13 +324,9 @@ describe('laminate planning', () => {
// Similar signed steps across three rows produce a visible staircase, even with small kerf drift.
expect(Math.abs(steps[i] - steps[i - 1])).toBeGreaterThan(36);
// Returning to almost the same joint line two rows later produces an H/brick repeat.
expect(Math.abs(signedDistance(phases[i - 1], phases[i + 1]))).toBeGreaterThan(36);
}
for (let i = 2; i < steps.length; i++) {
expect(
steps.slice(i - 2, i + 1).every((step) => step > 0) ||
steps.slice(i - 2, i + 1).every((step) => step < 0),
).toBe(false);
expect(Math.abs(signedDistance(phases[i - 1], phases[i + 1]))).toBeGreaterThanOrEqual(
s.width,
);
}
// Breaking the old regular pattern must not increase the stock requirement for these rooms.
expect(plan.boardCount).toBeLessThanOrEqual(boardBudget);