This commit is contained in:
parent
0c0f08b350
commit
171fbf1927
9 changed files with 2589 additions and 37 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue