From d1ebae72dc17426d47036c4fba93a5a34af5695e Mon Sep 17 00:00:00 2001 From: tscircuit-bot Date: Tue, 11 Aug 2026 18:24:41 +0000 Subject: [PATCH] Add JSON bug report bug-report-20260811T182423Z --- .../bug-report-20260811T182423Z.page.tsx | 4 ++ .../bug-report-20260811T182423Z.snap.svg | 50 ++++++++++++++ .../bug-report-20260811T182423Z.json | 65 +++++++++++++++++++ .../bug-report-20260811T182423Z.test.ts | 12 ++++ 4 files changed, 131 insertions(+) create mode 100644 site/bug-reports/bug-report-20260811T182423Z.page.tsx create mode 100644 tests/bug-reports/bug-report-20260811T182423Z/__snapshots__/bug-report-20260811T182423Z.snap.svg create mode 100644 tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.json create mode 100644 tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.test.ts diff --git a/site/bug-reports/bug-report-20260811T182423Z.page.tsx b/site/bug-reports/bug-report-20260811T182423Z.page.tsx new file mode 100644 index 000000000..732d3c615 --- /dev/null +++ b/site/bug-reports/bug-report-20260811T182423Z.page.tsx @@ -0,0 +1,4 @@ +import { PipelineDebugger } from "site/components/PipelineDebugger" +import inputProblem from "../../tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.json" + +export default () => diff --git a/tests/bug-reports/bug-report-20260811T182423Z/__snapshots__/bug-report-20260811T182423Z.snap.svg b/tests/bug-reports/bug-report-20260811T182423Z/__snapshots__/bug-report-20260811T182423Z.snap.svg new file mode 100644 index 000000000..6bc015817 --- /dev/null +++ b/tests/bug-reports/bug-report-20260811T182423Z/__snapshots__/bug-report-20260811T182423Z.snap.svg @@ -0,0 +1,50 @@ + \ No newline at end of file diff --git a/tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.json b/tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.json new file mode 100644 index 000000000..ae599907d --- /dev/null +++ b/tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.json @@ -0,0 +1,65 @@ +{ + "chips": [ + { + "chipId": "schematic_component_0", + "center": { + "x": 10, + "y": 0 + }, + "width": 0.6000000000000014, + "height": 0.6799999999999999, + "pins": [ + { + "pinId": "schematic_port_0", + "x": 9.7, + "y": 0, + "_facingDirection": "x-" + }, + { + "pinId": "schematic_port_1", + "x": 10.3, + "y": 0, + "_facingDirection": "x+" + } + ] + }, + { + "chipId": "schematic_component_1", + "center": { + "x": 0, + "y": 0 + }, + "width": 0.72, + "height": 0.84, + "pins": [ + { + "pinId": "schematic_port_2", + "x": -0.36, + "y": 0, + "_facingDirection": "x-" + }, + { + "pinId": "schematic_port_3", + "x": 0.36, + "y": 0, + "_facingDirection": "x+" + } + ] + } + ], + "directConnections": [ + { + "netId": ".C1 > .pin1 to R1.pin1", + "netLabelWidth": 0.96, + "pinIds": [ + "schematic_port_3", + "schematic_port_0" + ] + } + ], + "netConnections": [], + "textBoxes": [], + "availableNetLabelOrientations": {}, + "maxMspPairDistance": 2, + "_hideRatsNet": false +} diff --git a/tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.test.ts b/tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.test.ts new file mode 100644 index 000000000..6ad60272b --- /dev/null +++ b/tests/bug-reports/bug-report-20260811T182423Z/bug-report-20260811T182423Z.test.ts @@ -0,0 +1,12 @@ +import { expect, test } from "bun:test" +import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver" +import inputProblem from "./bug-report-20260811T182423Z.json" +import "tests/fixtures/matcher" + +test("bug-report-20260811T182423Z", () => { + const solver = new SchematicTracePipelineSolver(inputProblem as any) + + solver.solve() + + expect(solver).toMatchSolverSnapshot(import.meta.path) +})