Skip to content

feat: Bin-packing refactor #33

feat: Bin-packing refactor

feat: Bin-packing refactor #33

Triggered via pull request April 25, 2024 01:54
Status Failure
Total duration 42m 13s
Artifacts

validate.yml

on: pull_request

Annotations

4 errors
web-checks
Process completed with exit code 6.
error: expect(received).toEqual(expected): npm/src/packers/__tests__/TightPacker.test.ts#L27
{ - cuts: undefined, leftovers: [ "5" ], placements: [ + Rectangle { - ObjectContaining { bottom: 0, data: "1", + height: 5, left: 0, + width: 5, }, + Rectangle { + bottom: 0, - ObjectContaining { - bottom: 5, data: "2", + height: 4, + left: 5, + width: 4, - left: 0, }, + Rectangle { + bottom: 4, - ObjectContaining { - bottom: 0, data: "3", + height: 3, left: 5, + width: 3, }, + Rectangle { + bottom: 5, - ObjectContaining { - bottom: 3, data: "4", + height: 5, + left: 0, + width: 5, - left: 5, } ], } - Expected - 10 + Received + 17 at /home/runner/work/cutlist/cutlist/npm/src/packers/__tests__/TightPacker.test.ts:27:5
error: expect(received).toEqual(expected): npm/src/packers/__tests__/CutPacker.test.ts#L75
{ + leftovers: [], - cuts: undefined, - leftovers: [ - "3" - ], placements: [ + Rectangle { - ObjectContaining { bottom: 0, + data: "2", + height: 10, - data: "1", left: 0, + width: 4, }, + Rectangle { + bottom: 0, + data: "3", + height: 10, + left: 4, + width: 4, + }, + Rectangle { + bottom: 0, + data: "1", + height: 5, + left: 8, + width: 5, + }, + Rectangle { - ObjectContaining { bottom: 0, data: "4", + height: 3, + left: 13, + width: 3, - left: 5, }, + Rectangle { + bottom: 0, - ObjectContaining { - bottom: 5, data: "5", + height: 3, + left: 16, + width: 3, + }, + Rectangle { + bottom: 10, + data: "6", + height: 3, left: 0, + width: 3, - }, - ObjectContaining { - bottom: 5, - data: "2", - left: 5, } ], } - Expected - 15 + Received + 34 at /home/runner/work/cutlist/cutlist/npm/src/packers/__tests__/CutPacker.test.ts:75:5
npm-checks
Process completed with exit code 1.