diff --git a/tests/repros/__snapshots__/repro-sparse-chip-pin-numbers-schematic.snap.svg b/tests/repros/__snapshots__/repro-sparse-chip-pin-numbers-schematic.snap.svg new file mode 100644 index 000000000..715381a2a --- /dev/null +++ b/tests/repros/__snapshots__/repro-sparse-chip-pin-numbers-schematic.snap.svg @@ -0,0 +1,12 @@ +-3,-2-3,-1-3,0-3,1-3,2-2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2NN2-24S05C3NU11VIN_POS2GND5VO_NEG7VO_POS \ No newline at end of file diff --git a/tests/repros/repro-sparse-chip-pin-numbers.test.tsx b/tests/repros/repro-sparse-chip-pin-numbers.test.tsx new file mode 100644 index 000000000..d81d422ca --- /dev/null +++ b/tests/repros/repro-sparse-chip-pin-numbers.test.tsx @@ -0,0 +1,59 @@ +import { expect, test } from "bun:test" +import { getTestFixture } from "../fixtures/get-test-fixture" + +test("native chip preserves sparse pin numbers", () => { + const { circuit } = getTestFixture() + + circuit.add( + + + + + + + } + />, + ) + + circuit.render() + + expect(circuit).toMatchSchematicSnapshot(import.meta.path) +})