@tscircuit/schematic-trace-solver 0.0.91 → 0.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import { expect, test } from "bun:test"
2
+ import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
3
+ import inputProblem from "./assets/repro-netlabel-overlap-trace.input.json"
4
+ import "tests/fixtures/matcher"
5
+
6
+ // Regression (from @tscircuit/core repro147): a GND net label ends up overlapping
7
+ // the B1/SW1 junction trace instead of being placed clear of it.
8
+ test("repro147 netlabel overlaps trace", () => {
9
+ const solver = new SchematicTracePipelineSolver(inputProblem as any)
10
+
11
+ solver.solve()
12
+
13
+ expect(solver).toMatchSolverSnapshot(import.meta.path)
14
+ })
@@ -0,0 +1,14 @@
1
+ import { expect, test } from "bun:test"
2
+ import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
3
+ import inputProblem from "./assets/repro-rectifier-trace-overlap.input.json"
4
+ import "tests/fixtures/matcher"
5
+
6
+ // Regression (from @tscircuit/core half-bridge-rectifier): the R1->C1 connection
7
+ // used to be a simple direct trace but now detours and overlaps another trace.
8
+ test("repro149 rectifier trace overlap", () => {
9
+ const solver = new SchematicTracePipelineSolver(inputProblem as any)
10
+
11
+ solver.solve()
12
+
13
+ expect(solver).toMatchSolverSnapshot(import.meta.path)
14
+ })