Skip to content

feat: Bin-packing refactor #35

feat: Bin-packing refactor

feat: Bin-packing refactor #35

Triggered via pull request April 25, 2024 02:01
Status Failure
Total duration 35m 9s
Artifacts

validate.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
error: expect(received).toEqual(expected): npm/src/packers/__tests__/TightPacker.test.ts#L27
{ 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 - 9 + 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#L74
{ + leftovers: [], - leftovers: [ - "3" - ], placements: [ + Rectangle { + bottom: 0, + data: "2", + height: 10, + left: 0, + width: 4, + }, + Rectangle { + bottom: 0, + data: "3", + height: 10, + left: 4, + width: 4, + }, + Rectangle { - ObjectContaining { bottom: 0, data: "1", + height: 5, + left: 8, + width: 5, - left: 0, }, + 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 - 14 + Received + 34 at /home/runner/work/cutlist/cutlist/npm/src/packers/__tests__/CutPacker.test.ts:74:5
npm-checks
Process completed with exit code 1.
web-checks
Process completed with exit code 6.