This commit is contained in:
parent
7959fe85cc
commit
b9485e4097
32 changed files with 4692 additions and 65 deletions
|
|
@ -223,7 +223,12 @@ describe('laminate planning', () => {
|
|||
] as const)(
|
||||
'breaks random staircases and near-brick repeats in a common %s',
|
||||
(_, r, boardBudget, cutBudget) => {
|
||||
const s = { ...settings, width: 190, pattern: 'random' as const };
|
||||
const s = {
|
||||
...settings,
|
||||
width: 190,
|
||||
pattern: 'random' as const,
|
||||
optimisation: 'random' as const,
|
||||
};
|
||||
const plan = planFlooring([r], s, 1);
|
||||
expect(errors(plan)).toEqual([]);
|
||||
expect(plan).toEqual(planFlooring([r], s, 1));
|
||||
|
|
@ -296,8 +301,9 @@ describe('laminate planning', () => {
|
|||
});
|
||||
|
||||
it('plans each room independently and can reuse compatible end offcuts across directions', () => {
|
||||
const a = room(1820, 1220, '1');
|
||||
const b = room(1220, 1820, '2');
|
||||
const a = room(620, 220, '1');
|
||||
// Its ends complement the first room's remnants after the 3 mm saw kerf.
|
||||
const b = room(220, 617, '2');
|
||||
b.direction = 90;
|
||||
const combined = planFlooring([a, b], settings, 1);
|
||||
const separately =
|
||||
|
|
|
|||
Loading…
Reference in a new issue